A “C” program without a single semicolon (;)

Question:


Write a program in C to print “Hello World” without using a single semicolon(;) in the code ?


Code:


#include<stdio.h>


void main()


{


if(printf(“Hello World ..”)) {}


}

Share

About the Author

Akash Padhiyar

Visit Website

2 Comments

  1. David May 26, 2011

    This is illegal. The standard forbids a void main!

  2. but sir hello world to 4 time print ho raha he….!!!!!!!!!!

Leave a Comment

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

*

Time limit is exhausted. Please reload CAPTCHA.