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:
What printf format should I use for a typedef like size_t when I don't know whether it is long or some other type?
What printf format should I use for a typedef like size_t when I don't know whether it is long or some other type?
✍: Guest
Use a cast to convert the value to a known, conservatively-sized type, then use the printf format matching that type. For example, to print the size of a type, you might use
printf("%lu", (unsigned long)sizeof(thetype));
2015-11-04, 1242👍, 0💬
Popular Posts:
What is the benefit of using an enum rather than a #define constant? The use of an enumeration const...
What is Service Oriented architecture? “Services” are components which expose well defined interface...
Explain all parts of a deployment diagram? Package: It logically groups element of a UML model. Node...
What is the difference between CALL_FORM, NEW_FORM and OPEN_FORM? CALL_FORM: start a new form and pa...
What is Shell scripting A shell script is a script written for the shell, or command line interprete...