0
what is the output?
int a[40]; for(int i = 0;i<5;i++) { scanf("%d\n",&a[i]); printf("%d\n",a[i]); }
1 Resposta
0
the output is
1
2
1
3
2
4
3
5
4
6
5
but why?
int a[40]; for(int i = 0;i<5;i++) { scanf("%d\n",&a[i]); printf("%d\n",a[i]); }