Yo, look at this simple code:
In C, does the datatype char have a default value?Code:#include <stdio.h> int main() { unsigned char bytes[2][100]; int i = 0; for(i = 0; i < 200; i++) { printf("Byte[0][%-3d]: %-5d \t Byte[1][%-3d]: %-5d \n",i,bytes[0][i],i,bytes[1][i]); } return 0; }
This gives me a random series of values.
And even though the array only goes to 100, it prints up to 200 like I specified without error... and more random values.
Why is that?
Where are these numbers coming from?