Q24: Explain the use of getchar() and putchar () functions.

 

A24: getchar(): This function is used to read a single character from the standard input.

Syntax: int getchar(void);

 

putchar(): This function is used to write a single character to the standard output.

Syntax: int putchar(int character);

 

Post a Comment

0 Comments
* Please Don't Spam Here. All the Comments are Reviewed by Admin.