Categories:
.NET (357)
C (330)
C++ (183)
CSS (84)
DBA (2)
General (7)
HTML (4)
Java (574)
JavaScript (106)
JSP (66)
Oracle (114)
Perl (46)
Perl (1)
PHP (1)
PL/SQL (1)
RSS (51)
Software QA (13)
SQL Server (1)
Windows (1)
XHTML (173)
Other Resources:
How can f be used for both float and double arguments in printf? Aren't they different types?
How can f be used for both float and double arguments in printf? Aren't they different types?
✍: Guest
In the variable-length part of a variable-length argument list, the ``default argument promotions'' apply: types char and short int are promoted to int, and float is promoted to double. (These are the same promotions that apply to function calls without a prototype in scope, also known as ``old style'' function calls. Therefore, printf's %f format always sees a double. (Similarly, %c always sees an int, as does %hd.)
2015-06-17, 1152👍, 0💬
Popular Posts:
What Is a CAPTION Tag/Element? - XHTML 1.0 Tutorials - Understanding Tables and Table Cells A "capti...
What is XSLT? XSLT is a rule based language used to transform XML documents in to other file formats...
What print out will the folloging code produce? main() { char *p1=“name”; char *p2; p2=(char*)malloc...
If client side validation is enabled in your Web page, does that mean server side code is not run? W...
What is difference between custom JSP tags and JavaBeans? Custom JSP tag is a tag you defined. You d...