2 votes 2 votes Consider the following two function declarations: int *f() int (*f)() Which of the following is true? Both are identical The first is a correct declaration and the second is wrong Both are different ways of declaring pointer to a function The first declaration is a function returning a pointer to an integer and the second is a pointer to function returning integer Programming and DS ugcnetcse-sep2013-paper3 programming-in-c pointer-declaration + – go_editor asked Jul 24, 2016 recategorized Oct 19, 2018 by Pooja Khatri go_editor 4.2k views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
1 votes 1 votes ans is D int *f( ) is a function returning a pointer to an integer (here priority of () is more than * so it written first int (*f)() here since both are braces so we will proceed from left to right so it is pointer to function returning integer Sanjay Sharma answered Jul 24, 2016 Sanjay Sharma comment Share Follow See all 0 reply Please log in or register to add a comment.