Knowee
Questions
Features
Study Tools

What is the return type of the puts function in C?

Question

What is the return type of the puts function in C?

🧐 Not the exact question you are looking for?Go ask a question

Solution

The return type of the puts function in C is int. This function is used to write a string to the output (stdout) and it returns a nonnegative number on success. However, in case of any error, it returns EOF (End of File).

Similar Questions

What is the return type of the getchar function in C?

Explain different input and output functions in c with example (scanf,printf,gets,puts).

Which of the following is true about the puts function?

What will be the output of the following C code having void return-type function?#include <stdio.h>void foo(){return 1;}void main(){int x = 0;x = foo();printf("%d", x);}

What will be the data type returned for the following C function? #include <stdio.h> int func() { return (double)(char)5.0; }

1/3

Upgrade your grade with Knowee

Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.