adplus-dvertising
frame-decoration

Question

Guess the output of the program ?
#include<stdio.h>
int main()
{
    int i = 1, j = 2;
    if(i = 1) && if(j = 2)
        printf("India is my country");
    return 0;
}

a.

No output and No Error

b.

Error: Misplaced If

c.

Error : Expression Syntax Error

d.

Error: Undeclared identifier if

Posted under C Programming

Answer: (b).Error: Misplaced If

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Guess the output of the program ?