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 the most efficient way to count the number of bits which are set in a value?

4 Answers  


What is the difference between local variable and global variable in c?

0 Answers  


15.what is the disadvantage of using macros? 16.what is the self-referential structure? 17.can a union be self-referenced? 18.What is a pointer? 19.What is the Lvalue and Rvalue? 20.what is the difference between these initializations? 21.Char a[]=”string”; 22.Char *p=”literal”; 23.Does *p++ increment p, or what it points to?

1 Answers  


write a program to print largest number of each row of a 2D array

0 Answers  


define switch statement?

6 Answers   CTS,






Badboy is defined who has ALL the following properties: Does not have a girlfriend and is not married. He is not more than 23 years old. The middle name should be "Singh" The last name should have more than 4 characters. The character 'a' should appear in the last name at least two times. The name of one of his brothers should be "Ram" Write a method: boolean isBadBoy(boolean hasGirlFriend , boolean isMarried, int age , String middleName , String lastName , String[] brotherName); isHaveGirlFriend is true if the person has a girlfriend isMarried is true if the person is married age is the age of the person middleName is the middle name of the person lastName is the last name of the person brotherName is the array of the names of his brothers

0 Answers  


Explain low-order bytes.

0 Answers  


Write code for atoi(x) where x is hexadecimal string.

5 Answers   Adobe,


how does printf function work

1 Answers  


Define function pointers?

1 Answers  


please can any one suggest me best useful video tutorials on c i am science graduate.please help me.u can email me to sas29@in.com

0 Answers  


Read N characters in to an array . Use functions to do all problems and pass the address of array to function. 1. Print only the alphabets . If in upper case print in lower case vice versa.

1 Answers  


Categories