Q:

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

0

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


  1. int array[5] = {};
  2. int array[5] = {0};
  3. int a = 0, b = 0, c = 0; int array[5] = {a, b, c};
  4. All of the above

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

Correct Answer:

All of the above

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now
what will be the output of the following program... >>
<< Guess the output...