function of return 0 | SoloLearn: Learn to code for FREE!

0

function of return 0

what is the function of return 0 in sample program?

5/9/2020 12:35:39 PM

Het Dani

3 Answers

New Answer

+6

Hey there mate, returning 0 means that you stopped program execution correctly ; ) Otherwise it shows some other (maybe -ve) number when it exit in incorrect way!

+3

Search bar has lot of answers for this similarl question.. Use search bar for more and to avoid dublicates... Hoping These may helps you...... https://www.sololearn.com/discuss/2182900/?ref=app https://www.sololearn.com/discuss/1018521/?ref=app https://www.sololearn.com/discuss/1748386/?ref=app https://www.sololearn.com/discuss/2053622/?ref=app https://www.sololearn.com/discuss/1803954/?ref=app https://www.sololearn.com/discuss/1837877/?ref=app https://www.sololearn.com/discuss/1867350/?ref=app https://www.sololearn.com/discuss/1905095/?ref=app https://www.sololearn.com/discuss/1673522/?ref=app https://www.sololearn.com/discuss/2224109/?ref=app

-2

Means to return nothing just do work like displaying an output and u get a 0 value if u use it as an object