Single Choice Not Set

QWhat will be the output of the following program?

#include<stdio.h> 
void main()
{
      int a, b, c, d;
      a = 3;
      b = 5;
      c = a, b;
      d = (a, b);
      printf("c=%d d=%d", c, d);
}
 

ID: #1169 Operators and Enums in C Language 3,978 views
Question Info
#1169Q ID
Not SetDifficulty
Operators and Enums in C LanguageTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A c=3 d=3
  • B c=3 d=5
  • C c=5 d=3
  • D c=5 d=5
Correct Answer

Explanation

Option B

Share This Question

Challenge a friend or share with your study group.