Technical Discussion :: C
44. What is the output for:
if(!(1&&0))
printf("Good Morning");
else
printf("Good Night");
Answer:
Output is Good Morning
(1&&0) evaluates to 0
so !(1&&0) evaluates to 1
and Good Morning is printed.
Asked In :: Wipro
Output is Good Morning
(1&&0) evaluates to 0
so !(1&&0) evaluates to 1
and Good Morning is printed.