Scope of Variable

I’ve seen that in this video you have not used the exit statement (return 0) in the code and still the program works fine. Please explain this.

@yajurkhurana in int main its not compulsory to write return 0 as program automatically ends after main end so dont worry