Hi all. Suppose I have a char array of size 3 with the following contents:
where \0 is the null pointer. Is there a way that I can make the array becomeCode:[a][b][\0]
(That is, I want to "free" cell 0, empty it, return it to its state right after the array declaration.)Code:[b][\0]
I tried the following bit of code:
Windows XP returns the character 'p' and I've no idea why.Code:char foo; printf("%c\n", foo);
Thanks for any help!