I know how to initialize strings in C in two different ways.
char str[] = "abcd";
char str[] = {'a','b','c','d','\0' };
Clearly writing "abcd"
instead of {'a','b','c','d','\0' }
is time saving and comfortable.
Are there any particular reason that we can initialize the string like in the last line? Is it useful in some context or is it superfluous?