how to print "hai" in c?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is maximum size of array in c?

588


What do mean by network ?

665


How many header files are in c?

560


What is spaghetti programming?

679


How pointers are declared?

569






What are the advantages of using new operator as compared to the function malloc ()?

762


Where are local variables stored in c?

578


What are the features of c languages?

633


What does int main () mean?

558


what is reason of your company position's in india no. 1.

1781


All technical questions

1516


Why do we need arrays in c?

593


exit () is used to a) exit () terminates the execution of the program itself b) exit () terminates the execution of the loop c) exit () terminates the execution of the block d) none of the above

671


What is hash table in c?

578


Which built-in library function can be used to match a patter from the string?

751