Examveda

What will be the output of the following C++ code?
#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: Option A


Join The Discussion

Related Questions on Classes and Objects in C plus plus