0

¿como identifico si un bloque va a terminar en devuelve 0 o en 1?

¿como identifico si un bloque va a terminar en devuelve 0 o en 1? ademas ¿ es necesario poner devuelve 0 ? si no porque :D

19th Dec 2019, 7:57 PM
Silverio Quiñones Belmontes
Silverio Quiñones Belmontes - avatar
1 Réponse
0
Code 1 means that your program terminated with an error state. Code 0 means that your program terminated correctly. You should use 1 in the main return statement only for debugging purposes and never leave it in the finished project. To find out if your code will end up in code 1 or 0 prior to execution you should carefully analize the logic flow diagram of your code.
10th Jan 2020, 1:18 PM
Alessandro Buratto
Alessandro Buratto - avatar