Vidyalelo
C Programming · Q135

Pointer

Programming · C Programming · question 135

Q135

What are the different ways to initialize an array with all elements as zero?

A.
int array[5] = {};
B.
int array[5] = {0};
C.
int a = 0, b = 0, c = 0;
int array[5] = {a, b, c};
D.
All of the mentioned
Answer

Answer: Option D

Solution

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