Quick Tip : Scanf waiting for more than expected inputs

Scanf waiting for more than expected inputs:

This problem occurs if you use White spaces such as blanks, tabs, newlines,  in the scanf function. like below

If you observe carefully,  There is one space between two %d   format specifiers. So remove all spaces and Try again.
It should work.

From scanf manual page :

Related Tutorials :

Venkatesh

Hi Guys, I am Venkatesh. I am a programmer and an Open Source enthusiast. I write about programming and technology on this blog.

You may also like...

Leave a Reply