dev/c/echo_server-udp/tmp1.c

26 lines
327 B
C
Raw Normal View History

2011-05-04 15:30:24 +04:00
#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;
}