According to
http://www.cplusplus.com/doc/tutorial/ntcs/
"
char myword[] = { 'H', 'e', 'l', 'l', 'o', '\0' };
char myword[] = "Hello";
In both cases, the array of characters myword is declared with a size of 6 elements of type char: the 5 characters that compose the word "Hello", plus a final null character ('\0'), which specifies the end of the sequence and that, in the second case, when using double quotes (") it is appended automatically."
However there are examples where word array is declared as :
char myword[] = { 'H', 'e', 'l', 'l', 'o' };
Is syntactically correct?? If yes, what is the size of myword? and does '\0' append by compiler automatically?
And is char myword[] = "abc" same as
char myword[] = {'a','b','c','\0'} or is it same as char myword[] = {'a','b','c'} ??