why we write return 0; ???? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

why we write return 0; ????

29th Jul 2016, 2:32 PM
Abbass Awad
Abbass Awad - avatar
1 Answer
+ 1
Because a function with a description Integreer ou double need return some value to system. Functions with void tipe don't need return anything.
29th Jul 2016, 3:42 PM
Carlos Carvalho
Carlos Carvalho - avatar