Reading in long dual C programming language
How to read in long double in C?
+2
Chris_45
source
to share
4 answers
long double x; scanf("%Lf", &x);
+10
hrnt
source
to share
Remember that "long double" is synonymous with "double" in Visual Studio.
http://blogs.msdn.com/ericflee/archive/2004/06/10/152852.aspx
+3
RED SOFT ADAIR
source
to share
Any hrnt ( scanf("%Lf", &x)
) answer or
long double x;
if(read(fd,&x,sizeof(x))!=sizeof(x)) printf("Oops\n");
the question is very vague.
+2
Michael Krelin - hacker
source
to share
you can use the% ld format specifier to read long double variables.
0
Sachin Chourasiya
source
to share