Multiple choice

Which of the following array declarations is valid?

  1. float a[+40]

  2. int num[1-10]

  3. double[50]

  4. float values[10]

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

This option is correct as this declaration of array is valid.