adplus-dvertising
frame-decoration

Question

What is the output of this program?
    #include <iostream>
    using namespace std;
    int main()
    {
        typedef int num;
        typedef char let;
        let w = "steve";
        num a = 10, b = 15;
        num c = a + w;
        cout << c;
        return 0;
    }

a.

10steve

b.

steve10

c.

compile time error

d.

compile but not run

Answer: (c).compile time error

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?