can anyone please explain the array? means how to take the input for a array and how to print a array?
hi! here is your answer! At first, say salary[10] So, it represents salary of 10 employee. Declaration: Data-type Name[size] Code: int matrix[2][2] this declares an two dimensional array. In this array we can take a 2x2 matrix's information! Reading Inputs Code: for(i=0;i<=9;i++) { for(j=0;j<=9;j++) { printf("Enter the velue for position matrix[%d][%d]:",i,j); scanf("%d",matrix[i][j]); } } you can print an array in the same way. I'll prefer you to see a book for more information! You can use thi book "Let Us C"