Question: For each of these declarations, indicate the array data type, the array name and the array size. (1) int a[ 5 ]; (2) int b[
For each of these declarations, indicate the array data type, the array name and the array size.
(1) int a[ 5 ];
(2) int b[ 10 ];
(3) float fArray[ 2 ];
(4) char string1[ ] = "first";
(5) int m[ ] = { 1, 2, 3, 4 };
(6) char string1[ ] = { 'f', 'i', 'r', 's', 't', '\0' };
(7) const int SIZE = 10 ;
double March[ SIZE ];
(8) const int SIZE = 5 ;
double March[ SIZE ];
(9) const int SIZE = 6 ;
int April[SIZE - 1 ];
(10) const int SIZE = 4 ;
int Array[SIZE - 2 ];
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
