Vidyalelo
C++ Programming · Q101

Classes and Objects in C++

Programming · C++ Programming · question 101

Q101

What will be the output of the following C++ code? #include 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
Answer
B.
15
C.
30
D.
25

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board