[ create a new paste ] login | about

Link: http://codepad.org/zU9bKhp6    [ raw code | output | fork ]

C, pasted on Apr 12:
1
2
3
4
5
6
7
8
9
10
11
12
13
#include<stdio.h>
int foo(){
 printf("\n In FOO\n");
 return 4;
}
typedef int(*p)();

int main(){
 p f = foo;
 int i = f();
 printf("\n i = %d\n", i);
 return 1;
}


Output:
1
2
3
4

 In FOO

 i = 4


Create a new paste based on this one


Comments: