aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • C++ Fundamentals
  • To set the precision of floating point number, you use
Multiple choice

To set the precision of floating point number, you use

  1. Cout.prec()

  2. Cout.precision

  3. Cout.Precision

  4. None of the above

Reveal answer Fill a bubble to check yourself
B Correct answer

Keep practicing — related questions

  • How to specify (fix) the number of digits after decimal in a floating point number?
  • Which statement is used to print '+' before positive numbers?
  • By default, the floating-point value displays ______________ digits after the decimal point.
  • What is the result of the following statement? cout<<sizeof(float);
  • What will be the output of the following: void main() { float a=0.7; if(a<0.7) printf("c++"); else printf("...
  • void *vp; char* c; int i=20; float f=30.00; pick the line which will cause an error in a C++ compiler
  • What data type should be used for storing precise values ?
  • What will be the output of the following C++ statement? cout<<4.5%3;
Play the full quiz 🎤 Practise this topic out loud

Practice this topic

  • Programming Fundamentals (2381 questions)
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy