Skip to Main Content
Programming and Data Structures
book

Programming and Data Structures

by Ashok Kamthane
August 2009
Intermediate to advanced content levelIntermediate to advanced
604 pages
21h 39m
English
Pearson India
Content preview from Programming and Data Structures
Arrays 221
{
in t i, j,rcw,col,a[10] [10];
clrscrO ;
printf ("\tt Enter Order of matrix up to(10x 10) A:");
scanf (“%d %d",&row,txcol};
printf ("\Enter Elements of matrix A :\ ft");
for (i=0,i<rowrf++)
for (j=0,mj<col,j++)
scanf ("%d",&a[i][j]);
printf ("\n The Matrix is: \n");
for (i=$,'i<row,'i++)
I
for (j=0,j<col,-j++)
printf C%6d",a[i][fl);
printf ("\n");
}
QUTPUX:
Enter Order of matrix up to (10 x 10) A : 3 3
Enter Elements of matrix A :
3 5 8
4 8 5
8 5 4
The Matrix is:
3 5 8
4 8 5
8 5 4
Explanation In the above program the order of the matrix is entered. The order of the matrix should
be up to 10 x 10. For the sake of understanding we hav ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learning Data Structures and Algorithms

Learning Data Structures and Algorithms

Rod Stephens
Data Structures and Algorithms in C++, Second Edition

Data Structures and Algorithms in C++, Second Edition

Michael T. Goodrich, Roberto Tamassia, David M. Mount

Publisher Resources

ISBN: 9789332506343