scan an array in c code example Example: scan numbers into array c for (i = 0; i < 5; i++) scanf("%d", &array[i]);