Vidyalelo
C++ Programming · Q218

Classes and Objects in C++

Programming · C++ Programming · question 218

Q218

What will be the output of the following C++ code? #include 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
Answer
D.
compile but not run

Answer: Option C

Solution

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