Question
1.
#include
2.
using namespace std;
3.
int main()
4.
{
5.
int a = 5, b = 6, c, d;
6.
c = a, b;
7.
d = (a, b);
8.
cout
What is the output of this program?
1.
#include
2.
using namespace std;
3.
int main()
4.
{
5.
int a = 5, b = 6, c, d;
6.
c = a, b;
7.
d = (a, b);
8.
cout
Answer: Option A
Was this answer helpful ?
It is a separtor here.In c,the value a is stored in c and in d the value b is stored in d because of
the bracket.
Output:
$ g++ op3.cpp
$ a.out
5 6
Was this answer helpful ?
More Questions on This Topic :
Question 1.
What is the use of dynamic_cast operator?
....
Question 4.
What is this operator called ?: ?
....
Submit Solution