+ 4

What is "double" exactly for, in C?

The compiler warns : "format '%lf' expects argument of type 'double *', but argument 2 has type 'double' "

31st Aug 2019, 8:19 PM
Hadjer
Hadjer - avatar
2 ответов
+ 6
To simply answer your initial question, a double is a double precision floating point number capable of representing a number with more precision/accuracy using more numbers after the decimal point than single precision floats.
31st Aug 2019, 10:35 PM
Sonic
Sonic - avatar
+ 3
Martin Taylor yes , you are right that's exactly what I did , I start forgetting basic things😁. Thank you so much that's really strength my bad knowledge ❤❤
31st Aug 2019, 11:51 PM
Hadjer
Hadjer - avatar