Page 1 of 1

What are the elements present in the array of the following C code?

Posted: Wed Jul 13, 2022 7:54 pm
by answerhappygod
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