/* * program to print stack address */ #include #include /* * here's the main program -- simple */ int main(int argc, char *argv[]) { int a = 10; /* variable on the stack; any value (or none) is ok */ /* print the address of the variable on the stack */ printf("%p\n",&a); /* done! */ return(0); }