I'm learning about arrays in C. What's the difference between the two statements when using character arrays?
char my_char_array[] = {'M','y',' ','S','t','r','i','n','g'};
and
char my_char_array[] = "My String";
Also, why do I get some unprintable characters if I try and print the value of my_char_array to the screen (this happens with my_char_array being initialized both ways)?
printf("Value of my_char_array[]:%s\n", my_char_array);
Value of my_char_array[]:My String╠╠╠╠╠╠╠╠╠╠╠