+ 2

where we want to use int main(),return 0;and void main(),getch();...,??

7th Sep 2018, 12:28 AM
Sowmiya
Sowmiya - avatar
4 Respuestas
+ 5
when u use int main(),that means return integer ,if u use void main () that means return nothing .if u don't use getch(),u can not see output properly..getch() holds the output screen ..
23rd Oct 2018, 1:33 PM
Subhash Yadav
+ 6
You should always use the int main version as that is the latest standard. The other is obsolete Turbo C++ syntax and only works with the decade old unsupported compiler.
7th Sep 2018, 12:38 AM
John Wells
John Wells - avatar
+ 4
thank you sir...
7th Sep 2018, 1:30 AM
Sowmiya
Sowmiya - avatar
+ 2
read basics concepts of program
23rd Oct 2018, 12:12 PM
Subhash Yadav