python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
I am trying to take two input dates in vscode in windows in GNU g++ compiler. But I get first date set to zero after I enter second date?
When given the first.date in the first print output the result is good. But as soon as the second scanf line comes into picture it changes the first.date value to zero. So in the last printf line the ...
Rakesh Solanki
Votes: 0
Answers: 0
Scanf executed before printf even with fflush(stdout)
The program I wrote should in theory ask for the character to censor with printf and then execute scanf, but printf is shown on the terminal after scanf.
I read about the buffer problem but even after...

user17864936
Votes: 0
Answers: 0