Q. Which is/are the correct syntax to initialize an array in C?
β
Correct Answer: (D)
Both A and B
Explanation: Both the options A and B are correct to initialize an array.
Example:
int mark[5] = {19, 10, 8, 17, 9};
// or
int mark[] = {19, 10, 8, 17, 9};