Vidyalelo
C Programming · Q228

Pointer

Programming · C Programming · question 228

Q228

Comment on the following two operations. int *a[] = 1, 2, 3, 1, 2, 3, 4; //- 1 int b[4][4] = 1, 2, 3, 1, 2, 3, 4;//- 2

A.
1 will work, 2 will not
B.
1 and 2, both will work
C.
1 won't work, 2 will work
Answer
D.
Neither of them will work

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board