Home » C++ Programming » Files and Streams » Question
  1. What is the output of this program?
    #include <iostream>
    using namespace std;
    int main ()
    {
    int num1 = 150;
    double num2 = 6.251;
    cout << num1;
    cout << " ";
    cout << num2 << " " << num1 * num2;
    endl (cout);
    return 0;
    }
    1. 150 6.251 937.65
    2. 150 6.251
    3. 937.65
    4. 150
    5. None of these
Correct Option: A

In this program, We are printing the given value and manipulating the given value by using endl.



Your comments will be displayed only after manual approval.