I am trying to create a program can read marks of 10 student for different marks using C program but when I debug the output that shown was not the value that I input before, it keeps showing 7 digit value. Need someone advise, what is the misstake of my code. Below is my code.
#include <stdio.h>
int main()
{
int i, j;
int marks[2][10];
printf("Enter the marks of the ten students :\n");
for(i=0;i<10;i++)
{
printf("\nEnter the marks of student :%d",i);
printf("\nAssignment Mark :");
scanf("%d",marks[0]);
printf("Exam Mark :");
scanf("%d",marks[1]);
}
printf("****************************************************************\n");
for(j=0;j<10;j++)
{
printf("Student No :%d\n",j);
printf("Assignment Marks :%d\n",&marks[0]);
printf("Exam Marks :%d\n",&marks[1]);
}
getch();
return 0;
}