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

Explain the use of function toupper() with and example code?

657


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

665


Is c call by value?

611


What is auto keyword in c?

792


What is keyword in c?

606






What is meant by operator precedence?

680


What does the format %10.2 mean when included in a printf statement?

1093


what do the 'c' and 'v' in argc and argv stand for?

648


Explain the use of #pragma exit?

701


What is conio h in c?

629


How many bytes are occupied by near, far and huge pointers (dos)?

678


Are there any problems with performing mathematical operations on different variable types?

577


What is use of bit field?

776


Explain the bubble sort algorithm.

650


Explain spaghetti programming?

684