C Programming Code Examples C > Arrays and Matrices Code Examples C Program to Check Array bounds while Inputing Elements into the Array C Program to Check Array bounds while Inputing Elements into the Array #include <stdio.h> int main(void) { int array[8], b, c; for (b = 0; b < 10 && (scanf("%d", &c)); b++) array[b] = c; for (b = 0; b < 24; b++) printf("%d ", array[b]); return 0; }