How could it be possible to read and write past the array
问题 Output of the program: #include <stdio.h> int main() { int size; printf("Enter the size of array: "); scanf("%d",&size); int b[size],i = 0; printf("Enter %d integers to be printed: ",size); while(i++ < size) { scanf("%d",&b[i]); printf("%d %d\n", i, b[i]); } return 0; } for size = 5 and input numbers : 0 1 2 3 4 is 1 0 2 1 3 2 4 3 5 4 where first column is for i and second for elements of array b . It is clear that i in the loop while(i++ < size) { incremented to 1 before entering the loop.