Hi, i have a question.
I have a variable declaration like
What's really happening here? The string "Hello World" is copied into a location in executable file and it will be replaced with his memory address...but the compiler has reserved 255 byte for string1 and this space is unused.Code:char string1[255] = "Hello World";
I know it would be more correct use declaration like
[code]
char string1[255] = "Hello World";
[code]
but i want to know why.
thanks.