I was curious about how C handles array initialization. I have the following code in my program:
UChar match[] = {0xdf, 'a', 'b', '\0'};
Basically, this is initializing a UTF-16 string. UChar in this case is is 16 bits.
My question is: I need the trailing NULL byte at the end of the string, but it is necessary to include it in the initialization or will C automatically include that for ALL array initializations?