how to print "hai" in c?

Answers were Sorted based on User's Feedback



how to print "hai" in c?..

Answer / venkatachalam

printf("\"hai\"");

Is This Answer Correct ?    21 Yes 0 No

how to print "hai" in c?..

Answer / subha raman

main()
{
printf("\nab");
printf("\bsi");
printf("\rha");
}

Is This Answer Correct ?    12 Yes 0 No

how to print "hai" in c?..

Answer / harisharumalla

printf("\"hai"\");

Is This Answer Correct ?    5 Yes 4 No

how to print "hai" in c?..

Answer / anil kumar nahak

void main()
{
printf("\"hai\"");
}

Is This Answer Correct ?    0 Yes 0 No

how to print "hai" in c?..

Answer / vidhya lakshmi d

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

Is This Answer Correct ?    0 Yes 0 No

how to print "hai" in c?..

Answer / guest

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

Is This Answer Correct ?    5 Yes 6 No

how to print "hai" in c?..

Answer / shabeer v c

#include<stdio.h>
#include<conio.h>
void main()
{

printf(" \"hai");
printf(" \" ");
getch();
}

Is This Answer Correct ?    1 Yes 2 No

how to print "hai" in c?..

Answer / sanjay

printf("\hai"");

Is This Answer Correct ?    0 Yes 2 No

how to print "hai" in c?..

Answer / aruna.r

#include<stdio.h>
#include<conio.h>
void main()
{
char a[4];
int i;
clrscr();
printf("enter the charactor");
for(i=0;i<4;i++)
{
scanf("%c",&a[i]);
}
getch();
}

Is This Answer Correct ?    0 Yes 2 No

how to print "hai" in c?..

Answer / harish[nttf]

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

Is This Answer Correct ?    1 Yes 4 No

Post New Answer

More C Interview Questions

How can you find the day of the week given the date?

0 Answers  


Explain Function Pointer?

0 Answers   Wipro,


What is the purpose of Scanf Print, getchar, putchar, function?

3 Answers  


Develop a flow chart and write a c program to find the roots of a quadratic equation ax2+bx+c=0 using switch and break statement.

1 Answers   TCS,


What is function prototype?

0 Answers  






An interactive c program to read basic salary of 15 persons. each person gets 25% of basic as HRA, 15%of basic as conveyance allowances, 10%of basic as entertainment allowances.The total salary is calculated by adding basic+HRA+CA+EA.Calculate how many out of 15 get salary above 10,000.Rs also print the salary of each employee

2 Answers  


.find the output of the following program? char*myfunc(char*ptr) { ptr +=3; return (ptr); } int main() { char*x,*y; x="HELLO"; y=myfunc(x); printf("y = %s ",y); return 0; }

0 Answers  


What are the advantages of using Unions?

0 Answers   IBS,


18)struct base {int a,b; base(); int virtual function1(); } struct derv1:base{ int b,c,d; derv1() int virtual function1(); } struct derv2 : base {int a,e; } base::base() { a=2;b=3; } derv1::derv1(){ b=5; c=10;d=11;} base::function1() {return(100); } derv1::function1() { return(200); } main() base ba; derv1 d1,d2; printf("%d %d",d1.a,d1.b) o/p is a)a=2;b=3; b)a=3; b=2; c)a=5; b=10; d)none 19) for the above program answer the following q's main() base da; derv1 d1; derv2 d2; printf("%d %d %d",da.function1(),d1.function1(),d2.function1 ()); o/p is a)100,200,200; b)200,100,200; c)200,200,100; d)none 20)struct { int x; int y; }abc; you can not access x by the following 1)abc-->x; 2)abc[0]-->x; abc.x; (abc)-->x; a)1,2,3 b)2&3 c)1&2 d)1,3,4

1 Answers  


How many types of functions are there in c?

0 Answers  


How can I implement sets or arrays of bits?

0 Answers  


write a program in c to print **** * * * * ****

1 Answers   TCS,


Categories