+ 13
What does it mean when the function main() returns a value ??
15 Réponses
+ 12
Ooh its 5 and a half pm here ! but thnx anyway jay ;)
+ 12
okay , thx ;)
+ 12
Good luck to you too hun ;)
+ 11
@jay can you explain more i didnt get it :(
+ 11
@Antonín , thnx ... i think i got a little bit , after running the code, if the returned value was 1 for ex it gives an output else it gives an error ..
+ 11
@sadaf , while it doesn't do anything why it was used or created then ?!
+ 8
It usually does not return a value, or if it does it is 0 and does not do anything.
+ 6
I don't know if it has any special reason or not... but both forms can be used.
+ 6
you're welcome and good luck 😉
+ 5
it must return a value to the operating system to tell it if it exited correctly
+ 4
Antonin did a good job.. its 12:30am here. lazy tired atm pls forgive
+ 2
it returns 0 if code run ok! anything else would be an error code.
+ 1
to check if u app work correctly.