What will be the output of the following C++ code?

#include <iostream>
   using namespace std;
   int main()
   {
       float i = 123.0f;
       cout << i << endl;
       return 0;
   }

a) 123.00
b) 1.23
c) 123
d) compile time error

1 thought on “What will be the output of the following C++ code?”

Leave a Comment