![]() |
what is wrong with my program
I am a noob
and this is my first post so hello and i would like to know if you can tell me what is wrong with my code i am just starting c so her is my C program Code:
#include <stdio.h>error: syntax error at 'OTHER' token below every line that has printf on it |
Re: what is wrong with my program
Try this : (It might look same, but after careful observation, you can spot the difference(s) ;))
Code: C
|
Re: what is wrong with my program
Quote:
I think " " are the first.And syntax highlight is second one.Am i right? |
Re: what is wrong with my program
Yeah, you are right ! :)
" " should enclose strings and not “ ”. |
Re: what is wrong with my program
haha i see with the quotes whoops well i wrote the code in a text editor and the i copied it and pasted into the compiler thx tho
|
Re: what is wrong with my program
Welcome to G4EF, xzibit2313.
|
Re: what is wrong with my program
Code:
#include <stdio.h> |
Re: what is wrong with my program
LOL, I think you are confused with printf syntax.
Try this : Code: C
|
Re: what is wrong with my program
Oh I see all I had to do was remove that last quote .
Thx a bunch I'm sure I'll have many more questions tomarrow Are their any good c tutorials on here |
Re: what is wrong with my program
|
| All times are GMT +5.5. The time now is 16:21. |