main() { if(1) printf("hello"); else printf("world"); } In this C prog, How do print "hello world" by only changing the IF condition
Sir, what is meant by "false",what actually happened on the following line if(printf("hello") && false) Reply me
It prints hello and printf returns the number of characters printed which would be 5. 5 and false would be false as condition and so else would be executed.
You should be able to fix compilation errors because we are not using includes and things like those.