Multiple choice

The statement to declare a two dimensional floating point array of 15 rows and 30 columns using pointer, is

  1. float *(15)[30];

  2. float [15][30];

  3. float *(x)[30];

  4. float *x[30];

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

The declaration 'float *(x)[30]' declares x as a pointer to an array of 30 floats. This is the correct syntax for declaring a pointer to a fixed-size 2D array where each row has exactly 30 float elements. The parentheses are crucial - they bind the pointer to the array, not to individual float elements.