how to print "hai" in c?

Answer Posted / harish[nttf]

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

Is This Answer Correct ?    1 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain what is the best way to comment out a section of code that contains comments?

726


What are local static variables?

625


What is meant by keywords in c?

624


Given below are three different ways to print the character for ASCII code 88. Which is the correct way1) char c = 88; cout << c << " ";2) cout.put(88);3) cout << char(88) << " "; a) 1 b) 2 c) 3 d) constant

673


What is character constants?

717






Can a pointer be static?

629


What is sizeof int in c?

609


What are the different types of pointers used in c language?

618


Define Spanning-Tree Protocol (STP)

651


How can I avoid the abort, retry, fail messages?

665


What is meant by type specifiers?

666


What is the difference between fread and fwrite function?

644


What is strcmp in c?

605


Where in memory are my variables stored?

641


What does void main return?

612