plz mail me the answer

G

guthena

a C program which prints Hello World! without using a semicolon, in
whole programme
 
G

Gavin Deane

a C program which prints Hello World! without using a semicolon, in
whole programme

This is a C++ newsgroup. If you want help with C, you're probably
better off with comp.lang.c.

A couple of important guidelines from the comp.lang.c++ FAQ:

How to get help with code you are having problems with
http://www.parashift.com/c++-faq-lite/how-to-post.html#faq-5.8

How to get help with homework
http://www.parashift.com/c++-faq-lite/how-to-post.html#faq-5.2

comp.lang.c will probably expect similar courtesy (i.e. you question
as posted is not appropriate - for a start, where is your attempt at
answering the question?)

Gavin Deane
 
J

John Harrison

guthena said:
a C program which prints Hello World! without using a semicolon, in
whole programme

Really too easy

#include <stdio.h>

int main()
{
if (printf("Hello World!\n")) {}
}

Might not be legal C (not sure about the lack of a return from main in
C), but if you wanted a C answer you should have posted to comp.lang.c.

john
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,292
Messages
2,571,494
Members
48,174
Latest member
RonnyLoren

Latest Threads

Top