Software QA (13)
SQL Server (1)
I am using scanf c to read a Y/N response
I'm using scanf %c to read a Y/N response, but later input gets skipped.
You wanted scanf %c to read a single character, and it tried to, but when you tried to type that single character at it, before the rest of the input system would accept it, you had to hit the RETURN key, too. scanf read only the one character, but that extra newline was still sitting in an input buffer somewhere, and it's that extra newline (seemingly representing a phantom blank line) which was received by your later input call.
2015-10-21, 949👍, 0💬
.NET INTERVIEW QUESTIONS - What is the difference between System exceptions and Application exceptio...
What Does a HTML Document Look Like? A HTML document is a normal text file with predefined tags mixe...
Can you explain in brief how the ASP.NET authentication process works? ASP.NET does not run by itsel...
How does one iterate through items and records in a specified block? One can use NEXT_FIELD to itera...
How can I use tables to structure forms Small forms are sometimes placed within a TD element within ...