how can i print "hello"

Answers were Sorted based on User's Feedback



how can i print "hello"..

Answer / diwakar prasad singh

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

Is This Answer Correct ?    7 Yes 4 No

how can i print "hello"..

Answer / ajithbalaji

Both r wrong


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

Is This Answer Correct ?    5 Yes 2 No

how can i print "hello"..

Answer / vijay kumar tiwari

#include<iostream.h>
main()
{
cout<<"hello";
}

Is This Answer Correct ?    3 Yes 4 No

Post New Answer

More C Interview Questions

write a c program for print your name .but,your name may be small letter mean print a capital letter or your name may be capital letter mean print a small letter .example \\enter ur name : sankar The name is: SANKAR (or) enter your name:SAnkar The name is:saNKAR

3 Answers   IBM,


let's take a code struct FAQ { int a; char b; float c; double d; int a[10]; }*temp; now explain me how the memory will be allocated for the structure FAQ and what address will be in the structure pointer (temp)....................

8 Answers  


matrix multiplication fails introspect the causes for its failure and write down the possible reasons for its failurein c language.

5 Answers   TCS,


which type of aspect you want from the student.

1 Answers   IBM, TCS,


#define d 10+10 main() { printf("%d",d*d); }

6 Answers  


how can i make a program with this kind of output.. Enter a number: 5 0 01 012 0123 01234 012345 01234 0123 012 01 0

4 Answers   Wipro,


program to print upper & lower triangle of a matrix

2 Answers   TCS,


Why is not a pointer null after calling free? How unsafe is it to use (assign, compare) a pointer value after it is been freed?

1 Answers  


Explain what is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?

1 Answers  


How to swap two values using a single variable ? condition: Not to use Array and Pointer ?

6 Answers  


What is indirection?

1 Answers  


What are variables and it what way is it different from constants?

1 Answers  


Categories