Rotate your phone or change to desktop for better experience

Rotate your phone or change to desktop for better experience

array in user defined function

 #include <stdio.h>


struct arr

{

    int x,y;

    

}m1[10],m2[10];


int main()

{

    m1[0].x=1;

    m1[1].x=2;

    

    printf("%d\n",m1[0].x);

     

         printf("%d",m1[1].x);

         

         return 0;

Post a Comment

0 Comments