+ 2

Why in this app return 0 is used

I have learnt that to use getch () as ending bt here return 0 is user can u help me out

18th Oct 2016, 10:58 AM
rile
rile - avatar
5 Respostas
0
the return zero is just to see if your program executed correctly. on some compilers, after your program runs you will see "exited with status 0" or something like that. you should create a program that runs but doesn't work properly you will see your program will return probably a negative number
18th Oct 2016, 1:05 PM
Fhatuwani Luvhengo
Fhatuwani Luvhengo - avatar
+ 1
Becus we use int main() function so we must return 0; I never use void main becus I'm always reach error about getch() I use often Or dont use becus I do openGL The thing you told beginner Sure I'm one is I accept that becus I learn java and js to make a mod
18th Oct 2016, 12:33 PM
JS of MC(not C++ || java)
JS of MC(not C++ || java) - avatar
+ 1
just for now learn it. according to me u r just a beginner. you will learn its use after some time and use some other also( like return____. hear ____ can contain many things (which r in your coading))
18th Oct 2016, 12:33 PM
Bromit
+ 1
plz do not think why it is. just do it. u will know why it is as u will continue learning forward. do not forget to tap on 👍 sign.
18th Oct 2016, 12:41 PM
Bromit
+ 1
Mmmmm I understand for now In a match I just click wrong thing Anyway I wont tap that :P
18th Oct 2016, 1:00 PM
JS of MC(not C++ || java)
JS of MC(not C++ || java) - avatar