Examveda
Examveda

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

C. 5, (garbage), (garbage), (garbage), (garbage)

D. (garbage), (garbage), (garbage), (garbage), 5

Answer: Option B


This Question Belongs to C Program >> Pointer

Join The Discussion

Related Questions on Pointer