- Code: Select all
char a = 'H';
char b = 'T';
short int c = (int)'S';
for(count = 0;; count++) // also works in reverse
first i see a bunch or random data, which i expect, then a bunch of directory listings and stuff. Don't know what to make of it.
I take it that i'm looking at the stack and data left behind by something else and with the readable stuff, it has flowed into another part of memory before the segfault?
Could anyone enlighten me?