+ 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 Antwort
+ 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😋😋🙌🙌😎😎