+ 6
[SOLVED]What is difference in these functions ?
What is difference in getch(); and getchar(); What is difference in putch(); and putchar(); Edit:I know there are some questions discussing about these functions separately but I'm not getting clear idea.. so mods please dont mfd it Thank you
1 RĂ©ponse
+ 9
â
â
Different between getch() anf getchar():
â
getchar()Â is a standard function that gets a character from the stdin
â
getch()Â is non-standard. It gets a character from the keyboard (which may be different from stdin) and does not echo it.
â
â
Different between putch() and putchar():
â
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.
Hope this is helpful for you. Thanksđđđđđđ