Interesting; If I eliminate the address operator on my solaris 7 OS or Red Hat Linux 7.1 OS, it compiles and I can execute it; Of course, the answer is incorrect, but it doesn't skip the scanf.
I'm just guessing at which OS/Compiler you're using. Initial guess was VC++ on Windows: that is the only one I know of that skips. There is a bug in VC++ which appears to ignore the first line. Is it the first scanf that is being skipped or a random one in the middle? You could
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.