Header Ads Widget

What is the difference between return 0 and getch()...

(1) return 0 means you are returning a integer which          means at the accepting end the value gotten is 0.          In case of getch(), it hold the display of the                    console till you press enter.
(2) return 0 mean the value is return.

     getch() mean to keep answer in output screen.

Post a Comment

4 Comments