c for loop array code example Example: array loop in c int i, array[5]= {1, 2, 3, 4, 5}; for(i=0 ; i<5 ; i++) { printf("%d", array[i]) ; }