Vidyalelo
C++ Programming · Q199

Classes and Objects in C++

Programming · C++ Programming · question 199

Q199

What will be the output of the following C++ code? #include #include using namespace std; int main() int a = 21; int c ; c = a++; cout << c; return 0;

A.
21
Answer
B.
22
C.
23
D.
20

Answer: Option A

Solution

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