Sunday, November 2, 2008

What is the output of following programme ?

main() {
int x=10, y=20;
if(!!!!x||2&&x)
printf("x=%d", x);
else
printf("y=%d",y);
}

a. Y=20
b. X=10
c. X=-10
d. X=0
e. Error

No comments: