Code: void main() { if(X) { printf("Hello"); } else { printf(" World"); } } what to be placed in the place of X inorder to get the o/p ??? Hello World Thanks Shabbir Bhimani
What I can think of is X = !printf("Hello") so the program becomes Code: void main() { if(!printf("Hello")) { printf("Hello"); } else { printf(" World"); } } As printf returns no of characters it prints out so the output would become Hello World as desired