I am taking multiple integer inputs using scanf and saving it in an array
while(scanf("%d",&array[i++])==1);
The input integers are separated by white spaces for example:
12 345 132 123
I read this solution in another post.
But the problem is the while loop is not terminating.
What's the problem with this statement?
EOF(ctrl + zorctrl + d) and enter12 345 132 123...as input end mark.(scanffails when it is input)