What is the difference between putch() & putchar() in C programming?
Difference between putch() & putchar()
Collapse
X
-
Tags: None
-
Both displays single character.
putch comes from conio.h and I what wiki says (http://en.wikipedia.org/wiki/Conio.h) it is not supported on Linux.
putchar comes from stdio.h and you can use it with no problems on Linux. -
putchar(): This function is used to print one character on the screen, and this may be any character from C characterset(i. e it may be printable or non printable characters).
putch(): The putch() function is used to display all alphanumeric characters throught the standard output device like monitor. this function display single character at a time.Comment
Comment