programming-examples/c/Arrays/C Program to Check Array bounds while Inputing Elements into the Array.c
2019-11-15 12:59:38 +01:00

24 lines
430 B
C

/*
* C Program to Check Array bounds while Inputing Elements into the Array
*/
#include <stdio.h>
int main(void)
{
int array[5], b, c;
for (b = 0; b < 10 && (scanf("%d", &c)); b++)
array[b] = c;
for (b = 0; b < 15; b++)
printf("%d ", array[b]);
return 0;
}
/*
12
23
56
12
14
19
23
12 23 56 12 14 23 6 134513824 0 -1081194040 11672807 1 -1081193996 -1081193988 -1216161720