C Programming Puzzle #1


Improve your writing skills in 5 minutes a day with the Daily Writing Tips email newsletter.

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 *