1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
|
#include <stdio.h>
int main ()
{
int arr[16];
arr[0] = 100 ;
arr[1] = 200 ;
arr[2] = 300 ;
arr[3] = 400 ;
arr[4] = 500 ;
arr[5] = 600 ;
arr[6] = 700 ;
arr[7] = 800 ;
arr[8] = 900 ;
arr[9] = 1000 ;
arr[10] = 1100;
arr[12] = 1200 ;
arr[13] = 1300 ;
arr[14] = 1400 ;
arr[15] = 1500 ;
char str[] = "c program" ;
printf( "1: %d\n" , arr[0]);
printf( "2: %d\n" , arr[1]);
printf( "3: %d\n" , arr[2]);
printf( "4: %d\n" , arr[3]);
printf( "5: %d\n" , arr[4]);
printf( "6: %d\n" , arr[5]);
printf( "7: %d\n" , arr[6]);
printf( "8: %d\n" , arr[7]);
printf( "9: %d\n" , arr[8]);
printf( "10: %d\n" , arr[9]);
printf( "11: %d\n" , arr[10]);
printf( "12: %d\n" , arr[11]);
printf( "13: %d\n" , arr[12]);
printf( "14: %d\n" , arr[13]);
printf( "15: %d\n" , arr[14]);
printf( "16: %d\n" , arr[15]);
printf( "string: %s\n" , str );
return 0 ;
}
|