adplus-dvertising
frame-decoration

Question

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

a.

20

b.

15

c.

30

d.

25

Answer: (a).20

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?