Single Choice 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,091 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

Explanation

Option B
Today: 0 answered · 0 correct
Save progress
Free account

Want to remember what you got wrong?

Create a free account in seconds to track your score, revisit mistakes and continue Programming Language where you left off.

  • Save your progress & streak
  • Topic-wise quizzes & scores
  • Bookmark tricky questions
  • Printable MCQ sets
Practice smarterFree account · save progress
Sign up free

Share This Question

Challenge a friend or share with your study group.