How do you initialize an array in C?
A. int arr[3] = (1,2,3);
B. int arr(3) = {1,2,3};
C. int arr[3] = {1,2,3};
D. int arr(3) = (1,2,3);
Answer:C
How do you initialize an array in C?
A. int arr[3] = (1,2,3); B. int arr(3) = {1,2,3}; C. int arr[3] = {1,2,3}; D. int arr(3) = (1,2,3);
Explanation: In C, this is how you create an array.