Examveda

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

B. 6   5

C. 6   7

D. 6   8

Answer: Option A


Join The Discussion

Related Questions on Operators and Expressions in C plus plus