Question 1: Array Declaration
Which of the following is the correct way to declare an integer array of size 10 in C?
Question 2: Array Indexing
If int arr[5]; is declared, what are the valid indices?
Question 3: Array Initialization
Which of the following correctly initializes an array in C?
Question 4: Accessing Array Elements
What will the following code print?
Question 5: Array and Loop
What will be printed?
Question 6: Array Out of Bounds
What happens if we try to access arr[10] when arr has size 5?
Question 7: 2D Array Size
How many elements does an array int arr[3][4]; contain?
Question 8: 2D Array Access
What will be printed?
Question 9: Strings as Arrays
Which of the following is the correct declaration of a string in C?
Question 10: Sizeof Operator
If int arr[10]; and sizeof(int) = 4, what will sizeof(arr) return?