Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
Re:Request Admin's Further Clarification...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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator