Computer Science, asked by sgur54827, 8 months ago

?)
à (Write the difference between putchar() and puts ​

Answers

Answered by kolkataknight
1

Explanation:

the putchar() and puts() function of stdio.h header file in C programming language, and use it put string and characters on console.

Submitted by Abhishek Sharma, on April 12, 2018

The function puts() is used to print strings while putchar() function is used to print character as their names specifies.

These functions are from the stdio.h class doing the jobs related to strings.

Example:

puts("I AM A STRING");

Output:

I AM A STRING

putchar("a");

Output:

a

You can also use printf() which have more options then these two functions.

Similar questions