Home
Blogs
Questions
Jobs
Monetize

Home

About Us

Blogs

Questions

Jobs

Monetize

Post Job

banner

Questions about fflush

Read more about fflush

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)

Questions - fflush

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 ...
test-img

Rakesh Solanki

c

scanf

stdin

fflush

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...
test-img

user17864936

c

printf

scanf

fflush

Votes: 0

Answers: 0

Posts

Questions

Blogs

Jobs

The ultimate platform for coders and IT specialists

About

  • Company
  • Support

  • Platform

  • Terms & Conditions
  • Privacy statement
  • Cookie policy
  • Cookie option
  • OnlyCoders © 2025  |  All rights reserved