Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int foo( );
- int (*x)() = foo;
- ////////////////////////////////////////////////////////////
- int main()
- {
- printf(" foo = %d\n", foo() );
- printf(" foo = %d\n", x() );
- printf("&foo = %d\n", x );
- }
- ////////////////////////////////////////////////////////////
- int foo() //
- {
- return 18;
- }
- /*
- #include <stdio.h>
- int n = 7 ,
- nArr[77];
- int *p = &n;
- ////////////////////////////////////////////////////////////
- int main()
- {
- printf(" n = %d\n", n);
- printf(" p = %d\n", p);
- printf("*p = %d\n",*p);
- printf("&n = %d\n",&n);
- }
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement