C Programming Puzzle #1


What does the following program print? (The answer might also be that is doesn’t print anything due to compilation or run-time error).

#include <stdio.h>

int main(){

    if("Hello World" == "Hello World"){
       printf("Yes ","No ");
    }

    printf(10+"Hello World"-4);

return 0;
}

The answer to this puzzle along with puzzle #2 can be found here.

Leave a Reply

Your email address will not be published. Required fields are marked *