CHANGING ELEMENTS IN TWO DIMENSION ARRAY

int i[2][3] ={

{1,5,7}

{7,9,10}

}

i[0][1]=10;

To change the element of to array refers. To the number of the element each dimension the above example will change the value of the element in the first row [0] and second column [1].

#include<stdio.h>

void display(int);

int main()

{

  int i;

  int marks[]={55,65,75,56,78,78,80};

  for(i=0; i<=6; i++){

  display(marks[i]);

  return 0;

}

}

void display(int m)

{

  printf(“%d”, m);

}

Output:55 65 75 56 78 78 80