Difference between putch() & putchar()

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Shubhangi24
    New Member
    • Oct 2012
    • 20

    Difference between putch() & putchar()

    What is the difference between putch() & putchar() in C programming?
  • rski
    Recognized Expert Contributor
    • Dec 2006
    • 700

    #2
    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.

    Comment

    • Sherin
      New Member
      • Jan 2020
      • 77

      #3
      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

      Working...