|Que.||What is the return value of putchar()?|
|b.||EOF if an error occurs|
|d.||Both character written & EOF if an error occurs|
|Answer:Both character written & EOF if an error occurs|
- 1 What does Putchar return in C?
- 2 What is the use of putchar ()?
- 3 What is the value of EOF?
- 4 What is the default return type of Getchar?
- 5 Is Putchar faster than printf?
- 6 What is #include Stdio H?
- 7 What is the use of putchar () and getchar ()?
- 8 What is the maximum number of arguments that can be passed to a function?
- 9 Which format specifier is used for printing double value?
- 10 How do you qualify for EOF?
- 11 How do I print the value of EOF?
- 12 What type is EOF?
- 13 What does Fgetc return?
- 14 What is GETC return value?
- 15 What is the return type of Fgetc?
What does Putchar return in C?
The putchar(int char) method in C is used to write a character, of unsigned char type, to stdout. This character is passed as the parameter to this method. … Return Value: This function returns the character written on the stdout as an unsigned char. It also returns EOF when some error occurs.
What is the use of putchar ()?
putchar is a function in the C programming language that writes a single character to the standard output stream, stdout. Its prototype is as follows: int putchar (int character) The character to be printed is fed into the function as an argument, and if the writing is successful, the argument character is returned.
What is the value of EOF?
EOF is a macro which expands to an integer constant expression with type int and an implementation dependent negative value but is very commonly -1. ‘