Wednesday, 19 March 2014

C Program for Two dimensional array

/* Two dimensional array */
main( )
{
int  stud[4][2] ;
int  i, j ;
for ( i = 0 ; i <= 3 ; i++ )
{
printf ( "\n Enter roll no. and marks" ) ;
scanf ( "%d %d", &stud[i][0], &stud[i][1] ) ;
}
for ( i = 0 ; i <= 3 ; i++ )
printf ( "\n%d %d", stud[i][0], stud[i][1] ) ;
}

No comments:

Post a Comment