+ 5
What is the difference between getch() and return
5 Respuestas
+ 10
--> getch() is a predefined function Declared in conio.h header file.
This function is used to take a Single Character from User on Output (Console) Screen.
--> return is a keyword used to return a value to,from where function is Called.
+ 6
First tell me why did you share others code with your question?
As it seems you are new here so please next time don't share if there is no relationship with your question.
getch is a function that will wait for input and then read this input. It is often used at the end of programs to make sure the window you run it in doesn't close immediately. You can however use it to read input.
return is a statement used to return a value at the end of a function.
+ 5
Thank you "I don't know how to share so i make mistake sorry
+ 3
Rohit kumar No problem. Learn from mistake.
+ 3
When we work with computer in dev++ for example and when we compilate , it passes very quickly also the same for run so getch comes to block the screen in order to help the coder seeing the compilation and running and verify and testing the code if it is true on no getch is defined in conio.h header
But return is about returning a value !!!!