MCQ Single Best Answer Not Set

QWhat is the output of this C code?

#include<stdio.h>
void main()
{
      int i=0, j=1, k=2, m;
      m = i++ || j++ || k++;
      printf("%d %d %d %d", m, i, j, k);
}

ID: #1155 Operators and Enums in C Language 1,067 views
Question Info
#1155Q ID
Not SetDifficulty
Operators and Enums in C LanguageTopic

Choose the Best Option

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

  • A 1 1 2 3
  • B 1 1 2 2
  • C 0 1 2 2
  • D 0 1 2 3
Correct Answer: Option B

Explanation

Option B

Share This Question

Challenge a friend or share with your study group.