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++?

  1. %f
  2. %ld
  3. %lf
  4. %ldf

Answer: C) %lf

Explanation:

The "%lf" format specifier is used for long double in C++.

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.