0

difference between return and getch

in our university we are using this getch

29th Jul 2016, 5:45 PM
S_a
S_a - avatar
1 Answer
+ 3
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
30th Jul 2016, 4:30 AM
Shaurya Agnihotri