top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

C: Printing Helloworld without use of semicolon?

+2 votes
270 views

Print Helloworld in C without using semicolon [Only Once]

#include<stdio.h>
void main()
{
   if(printf("Helloworld"))
   {
   }
}

Print Helloworld in C without using semicolon [infinite times]

#include<stdio.h>
void main()
{
   while(printf("Helloworld"))
   {
   }
}

On the above lines you can do it with switch or can define a macro which can be used in while/switch or if statement.

posted May 22, 2014 by anonymous

  Promote This Article
Facebook Share Button Twitter Share Button LinkedIn Share Button

...