Consider the following two function declarations : (i) int *f( ) (ii) int…

PYQ UGC NET 2013

Consider the following two function declarations : (i) int *f( ) (ii) int (*f)( ) Which of the following is true ?

  1. A.

    Both are identical.

  2. B.

    The first is a correct declaration and the second is wrong.

  3. C.

    Both are different ways of declaring pointer to a function.

  4. D.

    The first declaration is a function returning a pointer to an integer and the second is a pointer to function returning integer.

Attempted by 23 students.

Sign up free to check your answer

Sign up free

Explore the full course: Nta Ugc Net Paper 2

Loading lesson…