[ create a new paste ] login | about

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

minke - C, pasted on Aug 24:
1
2
3
4
5
6
7
8
9
10
11
12
#include <stdio.h>
void f(){}
int main() {
  void (*p)() = f;
  printf("%x, %d\n%x, %d\n%x, %d\n%x, %d\n%x, %d\n",
         &f, sizeof(&f),
         f , sizeof f,
         *f, sizeof(*f),
         p , sizeof p,
         *p, sizeof(*p));
  return 0;
}


Output:
1
2
3
4
5
8048474, 4
8048474, 1
8048474, 1
8048474, 4
8048474, 1


Create a new paste based on this one


Comments: