Vidyalelo
C Programming · Q127

Pointer

Programming · C Programming · question 127

Q127

What are the elements present in the array of the following C code? int array[5] = 5;

A.
5, 5, 5, 5, 5
B.
5, 0, 0, 0, 0
Answer
C.
5, (garbage), (garbage), (garbage), (garbage)
D.
(garbage), (garbage), (garbage), (garbage), 5

Answer: Option B

Solution

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