how can i print "hello".please consider inverted commas as
well.i want to print on console: "hello"

Answers were Sorted based on User's Feedback



how can i print "hello".please consider inverted commas as well.i want to print on consol..

Answer / banavathvishnu

main()
{
printf("%s","\"Hello \"");
}

Is This Answer Correct ?    27 Yes 5 No

how can i print "hello".please consider inverted commas as well.i want to print on consol..

Answer / prayas

#include<stdio.h>
main ()
printf ( "\"Hello\"" ) ;

Is This Answer Correct ?    5 Yes 3 No

how can i print "hello".please consider inverted commas as well.i want to print on consol..

Answer / akshat

we can use the ascii code for char " and then print it...

Is This Answer Correct ?    3 Yes 2 No

how can i print "hello".please consider inverted commas as well.i want to print on consol..

Answer / anveshbanti

#include<stdio.h>
void main ()
{
printf(""hello"");
}

Is This Answer Correct ?    4 Yes 31 No

Post New Answer

More C Interview Questions

What is property type c?

0 Answers  


parkside's triangle.. create a program like this.. enter the size: 6 enter the seed: 1 output: 1 23 456 7891 23456 789123 sample2: enter the size: 5 enter the seed: 3 output: 3 45 678 9123 45678 parkside should not exceed 10 while its seed should only be not more than 9..

4 Answers  


i want to switch my career from quailty assurance engineering to development kindly guide me from which programming language its better for me to start plz refer some courses or certifications too i have an experience of 1.5 yrs in QA field.Kindly guide me

0 Answers   Microsoft,


Where register variables are stored in c?

0 Answers  


Write a program to find factorial of a number using recursive function.

0 Answers   Global Logic, TCS,






Write a c program using for loop in switch case?

1 Answers   Infosys,


A woman had somany gloves and hats 22 red,34 blue, 45 white...there was power cut and she took a glove and how many gloves shud she take so that she gets a pair of glove fr each color??

3 Answers   TCS,


Explain high-order bytes.

0 Answers  


Explain what is #line used for?

0 Answers  


Why do we use int main instead of void main in c?

0 Answers  


How to write a program for swapping two strings without using 3rd variable and without using string functions.

7 Answers   iGate, Infotech,


write a program to rearrange the array such way that all even elements should come first and next come odd

0 Answers  


Categories