dev/cpp/sockets/tmp1.c

26 lines
325 B
C

#include <stdio.h>
void f()
{
int c = 0;
printf("c=%lu\n",(unsigned long)&c);
}
int main(int argc, char * argv[]) {
//~ printf("%lu\n", sizeof(long));
int a = 0;
int pid = fork();
printf("pid=%d\n",pid);
printf("a=%lu\n",(unsigned long)&a);
int b = 0;
printf("b=%lu\n",(unsigned long)&b);
f();
return 0;
}