define an array to store marks of 30 students in 3 subjects in c
Answers
Answered by
11
Answer:
#define CSUB 3
#define CSTUDENT 30
int mark_array[CSUB][CSTUDENT];
Answered by
3
Defining the array to store marks of 30 students,
int array[30][3] ;
For storing the array of 30 students and each having marks three subjects we have to use the multidimensional array concept present in C language.
The multidimensional array is used when more than one related value to be stored in a single array.
The syntax for initializing the multidimensional array.
Similar questions