How can we initialize an array in the C language? A. int arr(2) = (10, 20) B. int arr[2] = {10, 20} C. int arr(2)={10, 20} D. int arr[2]=(10, 20) Answer Workspace Report Discuss Answer with explanation Answer: Option B Explanation The correct answer is int arr[2] = {10, 20} the values assigned to the array must be enclosed within a curly bracket. Workspace
Discuss about the question