Skip to content
Related Articles

Related Articles

Improve Article
Save Article
Like Article

C | Misc | Question 6

  • Last Updated : 28 Jun, 2021

Assume the following C variable declaration

Take a step-up from those "Hello World" programs. Learn to implement data structures like Heap, Stacks, Linked List and many more! Check out our Data Structures in C course to start learning today.




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

Of the following expressions

I.   A [2]
II.  A [2][3]
III. B [1]
IV.  B [2][3] 

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

(A) I, II and IV only
(B) II, III and IV only
(C) II and IV only
(D) IV only


Answer: (A)

Explanation: See https://www.geeksforgeeks.org/c-arrays-question-6/ for explanation.

Quiz of this Question

My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!