Introduction to Programming

Question #47

Read the question, compare the options, and review the correct answer below.

CS201 · Midterm#47

What will be the correct syntax to declare two-dimensional array of float data type?

  1. A
    float arr{2}{2} ;
  2. B
    float arr[2][2] ;
  3. C
    float arr[2,2] ;
  4. D
    float[2][2] arr ;
Show correct answer

Correct answer: B. float arr[2][2] ;

Check community answers against your course notes.
← More practice questionsTake a timed test