[SOLVED]What is difference in these functions ? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 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

17th Apr 2019, 8:05 AM
šŸ‡®šŸ‡³OmkaršŸ•‰
šŸ‡®šŸ‡³OmkaršŸ•‰ - avatar
1 Resposta
+ 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šŸ˜‹šŸ˜‹šŸ™ŒšŸ™ŒšŸ˜ŽšŸ˜Ž
17th Apr 2019, 8:20 AM
Asmit joy
Asmit joy - avatar