C Language - 2D Array

 


#include <stdio.h>

#include <conio.h>

int main()

{

int marks [2][6] = {{233, 434, 545, 343, 434, 678},

{453, 543, 246, 534, 545, 534}};

int i;

int j;

printf ("THE marks of grade 10th students are here: \n\n");

for (i=0; i<2; i++)

{

for (j=0; j<6; j++)

{

// printf ("The value of element %d, %d is array %d \n \a", i,j, marks[i][j]);

printf ("%d ", marks[i][j]);

}

printf ("\n \a");


}



return 0;

}


// ScreenShots:





Comments

Popular Posts