Answer: A, D
Option A:
char c[] = "GATE";
Since size of array is not mentioned so ‘\0’ must be at the end of the string.
Option B:
char c[] = {'2', '0', '2', '3'};
We initialized the array so array size will be 4.
Option C:
char c[4] = "GATE";
Size of array is provided so this array will store 4 characters. No ‘\0’ at the end.
Option D:
char c[16] = "2023";
Since size of the array is 16 and we only initialized with 4 characters compiler will add ‘\0’ to all the remaining positions.