overall goal is to understand the use multi dimensional array
For example, suppose
5 stdudents is stuying in fisrt standard Whose marks are as follows 40, 65, 98, 47, 65.
8 stdudents is stuying in second standard Whose marks are as follows 58, 23, 40, 80, 65, 98, 47, 65.
10 stdudents is stuying in second standard Whose marks are as follows 47, 65, 58, 23, 40, 80, 65, 98, 47, 65.
I want to store all student marks
Can i use 3d array to store all student marks ?
Is my program storing all student marks ?
Code:
#include<stdio.h>
int main ()
{
int student[5][8][10] = {{40, 58, 47}, { 65, 23, 65}, {98, 40, 58}, {47,80, 23}, {65, 65, 40}, {0, 98, 80}, {0, 47, 65}, {0, 65, 98}, {0, 0, 47} {0, 0, 65} };
return 0;
}