Q. Which of the following initializes all elements of an array to zero?
β
Correct Answer: (A)
int arr[] = {0};
Explanation: Initializing the first element as 0 initializes all to 0 in C.