C Program without a semicolon

Have you ever think about this? Can we have a ‘C’ program without any semicolon in it?

Is that possible? Yes. Look at the code below:

#include
 
void main
{
    if(printf(“Hello World”)){}
}



Output: 

Hello World

Leave a Reply

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