array_for loop

 #include<stdio.h>

void main()

{

 // datatype nameof_the_variable[lentgh of array];

 int i,marks[]={90,95,99,90};


for(i=0;i<4;i++)

{

 printf("\n marks in  subject %d = %d", i+1, marks[i]);

}


}

కామెంట్‌లు