Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.mel.connect.com.au!news.mira.net.au!inquo!in-news.erinet.com!newsfeeder.sdsu.edu!news.sgi.com!swrinde!cs.utexas.edu!howland.reston.ans.net!Germany.EU.net!Dortmund.Germany.EU.net!interface-business.de!usenet
From: j@ida.interface-business.de (J Wunsch)
Newsgroups: comp.unix.bsd.bsdi.misc
Subject: Re: C Programming Help
Date: 26 Jul 1996 07:30:24 GMT
Organization: interface business GmbH, Dresden
Lines: 46
Message-ID: <4t9s6g$j8h@innocence.interface-business.de>
References: <Edina1996Jul23.202436.23721@news3.idirect.com.compulink.com>
Reply-To: joerg_wunsch@interface-business.de (Joerg Wunsch)
NNTP-Posting-Host: ida.interface-business.de
X-Newsreader: knews 0.9.6
X-Phone: +49-351-31809-14
X-Fax: +49-351-3361187
X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E
In-Reply-To: <Edina1996Jul23.202436.23721@news3.idirect.com.compulink.com>
Cc: peter@e-partner.com (Peter Pohlmann)
peter@e-partner.com (Peter Pohlmann) wrote:
> Programming the following code does not show anything on the screen,
> why??
>
> #include <stdio.h>
>
> main()
>
> {
> printf(Hello Test");
> }
Because it's not valid C code, a double quote sign is missing.
Use this version (perhaps you notice a few differences):
==============================================
#include <stdio.h>
int
main(void)
{
printf("Hello, world!\n");
return 0;
}
==============================================
save it in a file, say "foo.c", then say:
cc foo.c
and type
./a.out
(You didn't tell us how _you_ compiled the program.)
> Please email to peter@e-partner.com. Thanks
Cc sent.
--
J"org Wunsch Unix support engineer
joerg_wunsch@interface-business.de http://www.interface-business.de/~j