Computer Science, asked by preetkumr2, 6 months ago

use of return 0 and return 1 in c++​

Answers

Answered by rijularoy16
0

Answer:

In main function return 0 or exit (0) are same but if you write exit (0) in different function then you program will exit from that position. returning different values like return 1 or return -1 means that program is returning error. But destructors are called if return 0 is used.

PLEASE MARK IT AS BRAINLIEST AND FOLLOW ME.

Similar questions