Logo 
Search:

C++ Programming FAQ

Submit Interview FAQ
Home » Interview FAQ » C++ ProgrammingRSS Feeds

What would be the output of the following code 3? - Select option

  Shared By: Eleanor Hughes    Date: Jan 01    Category: C++ Programming    Views: 690

Answer:

cout.width(5);
cout.precision(2);
cout<< 846.209;

Options

a) 846.20
b) 846.21
c) 846.209
d) 846.2

Answer : b) 846.21

Share: 
 



Your Comment
  • Comment should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].


Tagged: