MCQ Single Best Answer Not Set

QWhat is the output of this C code?

#include <stdio.h>
void main()
    {
        int x = 0;
        if (x = 0)
            printf("It's zero\n");
        else
            printf("It's not zero\n");
    }

ID: #1185 Operators and Enums in C Language 2,992 views
Question Info
#1185Q ID
Not SetDifficulty
Operators and Enums in C LanguageTopic

Choose the Best Option

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

  • A It's not zero
  • B It's zero
  • C Run time error
  • D None
Correct Answer: Option A

Explanation

Option A

Share This Question

Challenge a friend or share with your study group.