[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.c

printf error

alok

3/21/2011 6:15:00 PM

Why the following gives error:
printf("Hello World
");
2 Answers

phrogg

3/21/2011 7:45:00 PM

0

On Mon, 21 Mar 2011 11:15:28 -0700 (PDT), alok <manglikalok@gmail.com>
wrote:

>Why the following gives error:
>printf("Hello World
> ");


Try this

printf("Hello World"
" ");

Not that the quoted text on each line has an opening " and a closing
".

Morris Keesan

3/21/2011 7:56:00 PM

0

On Mon, 21 Mar 2011 14:15:28 -0400, alok <manglikalok@gmail.com> wrote:

> Why the following gives error:
> printf("Hello World
> ");

I bet the compiler's error message tells you the answer.

--
Morris Keesan -- mkeesan@post.harvard.edu