Monday, July 27, 2009

How can i print hello in double quotes on the output screen of c language?

is it correct


printf(" ' 'hello' ' ")


i used the single quotes for two times. but i know that it is not true please help.

How can i print hello in double quotes on the output screen of c language?
Ungh.. gotta dig in the the back corners of the brain but it should be:





printf("\"hello\"");





Escape sequence it: \"





Ciao! ;)
Reply:You need to escape the printed double quotes:





printf("\"Hello\"/n");


No comments:

Post a Comment