Floating point representation and output seems to be compiler dependent?



Floating point representation and output seems to be compiler dependent?..

Answer / rohit sah

Regrettably, yes. The action of ios::setprecision() varies among compilers.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C++ General Interview Questions

What are move semantics?

0 Answers  


What are virtual constructors/destructors?

0 Answers  


Is it possible to have a recursive inline function in c++?

0 Answers  


Can you think of a situation where your program would crash without reaching the breakball, which you set at the beginning of main()?

1 Answers  


Why do we need pointers?

0 Answers  






Write a program to interchange 2 variables without using the third one.

0 Answers  


Write a program to encrypt the data in a way that inputs a four digit number and replace each digit by (the sum of that digit plus 7) modulus 10. Then sweep the first digit with the third, second digit with the fourth and print the encrypted number.

0 Answers   CIIT Wah,


When should you use global variables?

0 Answers  


Why do we learn c++?

0 Answers  


Ask to write virtual base class code?

0 Answers   Satyam,


Write a corrected statement in c++ so that the statement will work properly. if (x > 5); y = 2*x; else y += 3+x;

1 Answers  


What is class invariant in c++?

0 Answers  


Categories