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:
Why doesnt this code work?
Why doesn't this code:
double d;
scanf("%f", &d);
work?
✍: Guest
Unlike printf, scanf uses %lf for values of type double, and %f for float.%f tells scanf to expect a pointer-to-float, not the pointer-to-double you gave it. Either use %lf, or declare the receiving variable as a float.
2015-10-30, 1108👍, 0💬
Popular Posts:
Which one of the following statements is TRUE in regard to overloading the ++ operator? 1 You cannot...
Can Java object be locked down for exclusive use by a given thread? Yes. You can lock an object by p...
What are the different elements in Functions points? The different elements in function points are a...
What is DAR (Decision Analysis and Resolution) ? Decision Analysis and Resolution is to analyze poss...
Which are the various programming approaches for WCF?