[Updated] Goldman Sachs Aptitude Test Questions and Answers
Practice List of TCS Digital Coding Questions !!!
Take 50+ FREE!! Online Data Interpretation Mock test to crack any Exams.
Technical Discussion :: C
Home > Technical Interview Q&A > C > Discussion

60 / 123

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

Post Your Answer Here:


Rate This: +0 -0     
Report    

Post Your Reply Here:

Alert me
q4i-reply-your-answer

Report Error

Please Login First Click Here

Most Popular Qs.