

MCQOPTIONS
Saved Bookmarks
1. |
Consider the following declaration of an array in ‘C’ language:int A[6] = {1, 2, 3, 5};Which of the following statements is true? |
A. | Both A[2] and 2[A] represent the value 2. |
B. | Both A[2] and 2[A] represent the value 3 |
C. | A[2] is the correct way to access an element of A, but 2[A] will give an error |
D. | The last two elements of the array A are 3 and 5 |
Answer» C. A[2] is the correct way to access an element of A, but 2[A] will give an error | |