H
humanmutantman
I'm reading a book that lists the example:
char month[10] = "January";
Memory for this looks something like the following:
| J | a | n | u | a | r | y | \0 | ? | ? |
Q1: How can I find out what is in the two memory locations following
the string terminator?
Q2: Does gcc zero out unused array elements?
Q3: If yes to Q2, where would I find that information?
Thanks!
char month[10] = "January";
Memory for this looks something like the following:
| J | a | n | u | a | r | y | \0 | ? | ? |
Q1: How can I find out what is in the two memory locations following
the string terminator?
Q2: Does gcc zero out unused array elements?
Q3: If yes to Q2, where would I find that information?
Thanks!