DIGIT-ARC read-only archive · snapshot: July 23, 2026

How to print "TEXT" without using semicolon

7 posts · originally from https://geek.digit.in/community/threads/how-to-print-text-without-using-semicolon.81052/

T
ThinkFree Original post #1
Feb 25, 2008 at 10:42 PM
Please tell how can I type HELLO WORLD in a c program without using any semicolon. I found this and tried running but compiler showed error

#include<stdio.h>
main()
{
if(Printf("Hello World!!!"))
}
Garbage
Garbage #2
Feb 25, 2008 at 10:49 PM
try using MACRO ??
Pathik
Pathik #3
Feb 25, 2008 at 10:54 PM
Code:
#include<stdio.h>
main()
{
if(printf("Hello World!!! \n"))
}
should work.
QwertyManiac
Feb 25, 2008 at 10:56 PM
Try this:
Code:
#include<stdio.h>
main()
{
if(printf("Hello World!!!"))
   {
   }
}
Garbage
Garbage #5
Feb 25, 2008 at 10:58 PM
Here is the solution...

ohh....

QwertyManiac... u stole my solution !! :(
K
khattam_ #6
Feb 26, 2008 at 3:10 AM
03-02-2008, 08:01 AM
*www.thinkdigit.com/forum/showthread.php?t=70697&page=10


Peace
T
Feb 27, 2008 at 11:23 AM
Thanks for all the replies. solution give be QWERTYManiac worked