Skip to main content

Array example 3

#include<stdio.h>
int main()
{
    int marks[5][5]={{95,93,97,87,94},
                     {87,89,88,85,83}};
    
    for (int i = 0i < 2i++)
    {
        for (int j = 0j < 5j++)
        {
            printf("The value of %d, %d value of the array is %d\n",i,j,marks[i][j]);
        }
        
        
    }
    
    return 0;
}

Comments

Popular posts from this blog

example of typecasting in c

/*Type Casting in C Typecasting allows us to convert one data type into other. */ //simple example to cast int value into the float. #include <stdio.h>    int   main (){   float   f = ( float ) 9 / 4 ;     printf ( "f : %f \n " ,  f  );     return   0 ;   }