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};
int array[5] = {a, b, c};
D.
All of the mentioned
AnswerAnswer: Option D
Solution
Answer: Option D
No explanation is given for this question Let's Discuss on Board