print a "hello" word without using printf n puts in c language

Answer Posted / taz

ch[6]={'h','e','l','l','o','\0'};
i=0;
do
{
putchar(ch[i]);
i++;
}while(ch[i]!=NULL)

Is This Answer Correct ?    5 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the different types of control structures?

587


an expression contains relational operators, assignment operators, and arithmatic operstors. In the absence of parentheses, they will be evaluated in which of the following order a) assignment, relational, arithematic b) arithematic, relational, assignment c) relational, arithematic, assignment d) assignment, arithematic, relational

812


What is a stream water?

658


Explain what is #line used for?

608


What is int main () in c?

627






What are run-time errors?

600


What are examples of structures?

597


Explain the use of 'auto' keyword in c programming?

683


How can I invoke another program (a standalone executable, or an operating system command) from within a c program?

653


Can we assign string to char pointer?

588


What is a void pointer in c?

608


Explain what standard functions are available to manipulate strings?

613


Why is c so important?

596


What is a #include preprocessor?

618


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

625