Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

Re:Request Admin's Further Clarification...

Posted by frkstyc at 2009-05-21 00:43:56 on Problem 3737
In Reply To:Request Admin's Further Clarification... Posted by:knhung at 2009-05-21 00:02:18
Don't overread the FAQ. It says nothing whatsoever about scanf.

I would love to explain a bit just to settle your concern. printf does not
need to distinguish float's and double's as scanf does. According to what
the C language standard terms "default argument promotion", any float
matching against an ellipsis ("...") is implicitly promoted to double. So
whether you pass a float or double to printf, it will always see a double.
Therefore, it does not need a long modifier to distinguish the two types.

> My experiences told me...
> For the new compiler(s)...
> 
>       Read          Write
> G++:   %lf         %f
> C++:   %lf         %lf / %f

Followed by:

Post your reply here:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator