What should be the “condition” so that the following code snippet prints both HelloWorld!
if "condition" printf ("Hello"); else printf("World");
1. #includeint main(){if(!printf("Hello"))printf("Hello");elseprintf("World");getchar();}
2.#includeint main(){if(printf("Hello") < 0)printf("Hello");elseprintf("World");getchar();}
Comments
Post a Comment