Home »
MCQs »
C++ MCQs
Which of the following is the correct format specifier for long double-type values in C++?
40. Which of the following is the correct format specifier for long double-type values in C++?
- %f
- %ld
- %lf
- %ldf
Answer: C) %lf
Explanation:
The "%lf" format specifier is used for long double in C++.