difference between return and getch | Sololearn: Learn to code for FREE!


difference between return and getch

in our university we are using this getch

7/29/2016 5:45:27 PM


1 Answer

New Answer


when you write int before any function(like int main)...it means you will return an integer number so return keyword is used to return something whereas getch(); function means get the character...so by using this function compiler will wait for the user to get any character and then only program will terminate.... so indirectly we see an output screen until we press any character