Why scanf() reads two values when we put spaces after format specifier even we are passing one reference

First of all you would want to change your int a; to a pointer, 2) when you specify a variable to be as int it only expect integer number 0-9 and space is a char character, 3) i think number would answer this too

Browse More Popular Posts

Leave a Comment