Question 17Asked in UGC NET Computer Science, June 2016 (Paper II & III, Selected Questions)

The following statement in 'C' int (*f( ))[ ];

The following statement in 'C' int (*f( ))[ ]; declares
  1. Aa function returning a pointer to an array of integers.
  2. Ba function returning an array of pointers to integers.
  3. Carray of functions returning pointers to integers.
  4. Dan illegal statement.
Show answerHide answer

Correct answer: (A) a function returning a pointer to an array of integers.

Explanation

In 'C', int (*f( ))[ ]; declares f as a function returning a pointer to an array of integers.

From UGC NET Computer Science PYQ, June 2016 (Paper II & III, Selected Questions)

This is question 17 of UGC NET Computer Science PYQ, June 2016 (Paper II & III, Selected Questions). See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.