home
Learn
screen_rotation
#include <stdio.h> #include <conio.h> void main(){ int arr[7]; int i; clrscr(); printf("\n This is 1-d array program."); arr[0] = 100; arr[1] = 200; arr[2] = 300; arr[3] = 200; arr[4] = 400; arr[5] = 100; arr[6] = 500; 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] = 100 value of arr[1] = 200 value of arr[2] = 300 value of arr[3] = 200 value of arr[4] = 400 value of arr[5] = 100 value of arr[6] = 500