Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Array Incrementing by 1
#include <stdio.h> int main(){ int array1[10]={1,2,3,4,5,6,5,4,3,2}; int array2[10]={10,20,30,40,50,60,70,80,90,100}; for (int i=0; i<10; i++){ printf("Array1 %d before the increment is %d ", i, array1[i]); printf("Array2 %d before the increment is %d\n", i, array2[i]); array1[i]++; array2[i]++; } printf("\n"); for (int i=0; i<10; i++){ printf("Array1 %d after the increment is %d ", i, array1[i]); printf("Array2 %d after the increment is %d\n", i, array2[i]); } return 0; }
run
|
edit
|
history
|
help
0
Lab 11v0.6
First program.c
print_odd_pointer.c
Alphabet Triangle
C_141126_ArrayMayorMenor02
Dangling
MATRIZ DE CADENAS
18BCE2182 ASSESS_2 Q3
Sizeof void
C_141210_Funciones