C++ Certified Professional Programmer

228 Questions

You can start the exam to practice all questions related to this exam.

Question No. 1

"What happens when you attempt to compile and run the following code?

#include <iostream> #include <iomanip>

using namespace std;

int main ()


float f = 10.126;

cout<<f<<"" ""<<setprecision(2)<<f<<endl; return 0;


Program outputs:

Choose the correct option from the given list.
01 / 228

0 Discussions

Trending Exams