Forum     

Go Back   Digit Technology Discussion Forum > Software > Programming
Register FAQ Calendar Mark Forums Read

Programming The destination for developers - C, C++, Java, Python and the lot


Closed Thread
 
LinkBack Thread Tools Display Modes
Old 25-02-2008, 10:42 PM   #1 (permalink)
Human Spambot
 
Join Date: Jan 2007
Location: Lat 28.38°N , Longt 77.13°E
Posts: 2,431
Default How to print "TEXT" without using semicolon


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

Quote:

#include<stdio.h>
main()
{
if(Printf("Hello World!!!"))
}
ThinkFree is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 25-02-2008, 10:49 PM   #2 (permalink)
God of Mistakes...
 
Garbage's Avatar
 
Join Date: Dec 2005
Location: Pune, Maharashtra
Posts: 1,923
Default Re: How to print "TEXT" without using semicolon

try using MACRO ??
__________________
Registered Linux User #468778
----------------------------------
http://twitter.com/_Garbage_
Garbage is offline  
Old 25-02-2008, 10:54 PM   #3 (permalink)
Google Bot
 
Pathik's Avatar
 
Join Date: Aug 2005
Posts: 9,772
Default Re: How to print "TEXT" without using semicolon

Code:
#include<stdio.h>
main()
{
if(printf("Hello World!!! \n"))
}
should work.
__________________
My new blog: www.pathikshah.com
Pathik is offline  
Old 25-02-2008, 10:56 PM   #4 (permalink)
Commander in Chief
 
QwertyManiac's Avatar
 
Join Date: Jul 2005
Posts: 6,658
Default Re: How to print "TEXT" without using semicolon

Try this:
Code:
#include<stdio.h>
main()
{
if(printf("Hello World!!!"))
   {
   }
}
__________________
Harsh J
www.harshj.com
QwertyManiac is offline  
Old 25-02-2008, 10:58 PM   #5 (permalink)
God of Mistakes...
 
Garbage's Avatar
 
Join Date: Dec 2005
Location: Pune, Maharashtra
Posts: 1,923
Default Re: How to print "TEXT" without using semicolon

Here is the solution...

ohh....

QwertyManiac... u stole my solution !!
__________________
Registered Linux User #468778
----------------------------------
http://twitter.com/_Garbage_

Last edited by Garbage; 25-02-2008 at 11:01 PM. Reason: solution already posted by QwertyManiac
Garbage is offline  
Old 26-02-2008, 03:10 AM   #6 (permalink)
Fresh Stock Since 2005
 
Join Date: Feb 2005
Posts: 1,015
Default Re: How to print "TEXT" without using semicolon

03-02-2008, 08:01 AM
Solve the given C Puzzle


Peace
__________________
http://www.khattam.info
khattam_ is offline  
Old 27-02-2008, 11:23 AM   #7 (permalink)
Human Spambot
 
Join Date: Jan 2007
Location: Lat 28.38°N , Longt 77.13°E
Posts: 2,431
Default Re: How to print "TEXT" without using semicolon

Thanks for all the replies. solution give be QWERTYManiac worked
ThinkFree is offline  
Closed Thread

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
NEW VIRUS GIVING MESSAGE:"Can not find script file"WIN32.DLL.dll.vbs" ". mdp Software Q&A 5 02-10-2007 02:11 PM
VISTA TUTORIAL: Add "Hide File Names" Option in "View" Menu of Folders Vishal Gupta Tutorials 7 27-06-2007 10:46 PM
TUTORIAL: Effective Way to change the "start" button text in Windows XP Kiran.dks Tutorials 20 14-03-2007 03:41 PM
"Text-To-Voice/speech" Software. nil_3 Software Q&A 10 22-03-2006 11:17 AM

 
Latest Threads
- by Charan
- by Sarath
- by clmlbx

Advertisement




All times are GMT +5.5. The time now is 12:52 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2