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]); }

10th Sep 2019, 4:20 AM
matt
1 Answer
0
the output is 1 2 1 3 2 4 3 5 4 6 5 but why?
10th Sep 2019, 4:21 AM
matt