hi
i thought it would be funny to see what the stack looks like in general so i prorgammed something that shows it in a very rough way.
that code took me less than 5 minutes, so dont blame me for it.
maybe you know how to make it better?
thanksCode:/* ever wondered what your stack may look like? */ #include <stdio.h> /* uncomment lines to log to a file called \'memlog\' */ int main (void) { //FILE *fd; char buffer[] = "this is a test!\n"; int i; /* if(((fd = fopen("memlog", "a"))) == 0){ exit(1); } */ for(i=0;i<20000;i++){ printf("%p\t%c\n", &buffer[i], buffer[i]); //fprintf(fd, "%p\t%c\n", &buffer[i], buffer[i]); } //fclose(fd); return 0; }