top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration Why to Join

    Get Free Article Updates

Facebook Login
Site Registration

C: Printing Helloworld without use of semicolon?

+2 votes
79 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 Google+ Share Button LinkedIn Share Button Multiple Social Share Button

Contact Us
+91 9880187415
sales@queryhome.net
support@queryhome.net
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Bangalore-560102
Karnataka INDIA.
QUERY HOME
...