adplus-dvertising
frame-decoration

Question

What is the output of this program?
    #include <iostream>
    using namespace std;
    int main ()
    {
        int a = 100;
        double b = 3.14;
        cout << a;
        cout << endl;
        cout << b << endl << a * b;
        endl (cout);
        return 0;
    }

a.

100

b.

3.14

c.

314

d.

All of the mentioned

Answer: (d).All of the mentioned

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is the output of this program?

Similar Questions

Discover Related MCQs

Q. Which member function is used to determine whether the stream object is currently associated with a file?

Q. Which header file is used for reading and writing to a file?

Q. Which one is always faster in writing on C++?

Q. How many tests are available in read and write operations?

Q. What will act as a intermediate between i/o operations and physical file?

Q. By using which function does the buffer are automatically flushed?

Q. How many parameters are available in the function setbuf?

Q. What is the main feature of locale in C++?

Q. Which objects information is loaded in locale object?

Q. How many categories are available in facets?

Q. What kind of locale does every program is having in C++?

Q. What will the monetary facet will do?

Q. Which header file is used with input and output operations of C in C++?

Q. Which will be used with physical devices to interact from C++ program?

Q. How many streams are automatically created when executing a program?

Q. How many indicators are available in c++?

Q. What is the benefit of c++ input and output over c input and output?

Q. To which type does the numeric limits are suitable?

Q. Where does the member should be defined if it is used in the program?

Q. What will the max function in the numeric limit will return for type float?