Vidyalelo
C++ Programming · Q29

Operators and Expressions in C++

Programming · C++ Programming · question 29

Q29

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

A.
5   6
Answer
B.
6   5
C.
6   7
D.
6   8

Answer: Option A

Solution

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