Why do we use 'getch()' in 'void main()' function and 'return 0' in 'int main()' function? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Why do we use 'getch()' in 'void main()' function and 'return 0' in 'int main()' function?

21st Mar 2019, 4:30 PM
Aman kumar
Aman kumar - avatar
1 Answer
+ 1
In both cases we uses them to pause the output screen to see the results .. if any doubt then ask..........
10th Aug 2020, 7:22 PM
Ajeet Singh