This is a question on c program. Can anybody answer me!
If(________) printf("Hello"); else printf("world"); What is the condition to get o/p as Helloworld.
if(!(printf("Hello")))
printf("Hello");
else
printf("World");
the above code will do!
Reply:If the above program is not modified, then you can't. Because both are mutually exclusive conditions. If one is true, then the other one will be false and won't be printed.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment