By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,553 Members | 835 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,553 IT Pros & Developers. It's quick & easy.

Difference between putch() & putchar()

P: 20
What is the difference between putch() & putchar() in C programming?
Jul 26 '13 #1
Share this Question
Share on Google+
2 Replies

Expert 100+
P: 700
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.
Jul 26 '13 #2

P: 56
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.
1 Week Ago #3

Post your reply

Sign in to post your reply or Sign up for a free account.