ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1601. AntiCAPS

The difference between scanf("%c", &ar) and scanf("%c", &ar, 1)
Posted by KOTnt 8 May 2013 15:21
Could anyone explain the difference between using scanf("%c", &ar) and scanf("%c", &ar, 1)?
(when I use the first, I get WA #1, when the second, I get AC)

Why is this happen and what does that third argument mean?

Thanks for the answers.