Please consider the following code
#include<stdio.h>
int fun(); /* function prototype */
int main()
{
int (*p)() = fun;
(*p)();
return 0;
}
int fun()
{
printf("IndiaBix.com\n");
return 0;
}
What is int(*p)()
here?Is it a function,variable or what?
Flow spiral rule :
+------+
| |
| +-+ |
| ^ | |
int ( *p ) ()
^ | | |
| +----+ |
+--------+
Identifier p
is a pointer to..
is a pointer to a function
is a pointer to a function returning int
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments