Assume the following C variable declaration int *A [10], B[10][10]; Of the…

GATE · 2003 · CS

Assume the following C variable declaration 

 int *A [10], B[10][10];  

Of the following expressions :

  1. A[2] 

  2. A[2][3] 

  3. B[1]

  4. B[2][3] 

which will not give compile-time errors if used as left hand sides of assignment statements in a C program?

  1. A.

    I, II, and IV only

  2. B.

    II, III, and IV only

  3. C.

    II and IV only

  4. D.

    IV only

Attempted by 328 students.

Sign up free to check your answer

Sign up free

Explore the full course: Gate Guidance By Sanchit Sir

Loading lesson…