home
Learn
screen_rotation
#include <stdio.h> #include <conio.h> void main(){ int arr[7]={10,20,30,20,10,50,20}; int i; clrscr(); printf("\n This is 1-d array program."); for(i=0;i<7;i++){ printf("\n value of arr[%d] = %d",i,arr[i]); } getch(); }
Program Output
This is 1-d array program. value of arr[0] = 10 value of arr[1] = 20 value of arr[2] = 30 value of arr[3] = 20 value of arr[4] = 10 value of arr[5] = 50 value of arr[6] = 20