Multiple choice

An array is initialised as “static int arr[5]”. If we do not initialize the array in this case, what would be the default initial value of the elements of array?

  1. Zero

  2. Garbage value

  3. Floating number

  4. One(1)

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

Static storage class have default initial value = 0; So, all the elements will be initialized to zero if we declare array as static. Therefore, option(1) is correct.