adplus-dvertising
frame-decoration

Question

What will be the valid value of X by which we can print "DEF".
#include<stdio.h>
int main()
{
int x = _________ ;

  if(x)
        printf("ABC");
  else
        printf("DEF");

return 0;
}

a.

0

b.

-9

c.

'0'

d.

'A'

Answer: (a).0

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What will be the valid value of X by which we can print "DEF".