- 2

Why return 0; is used for programming

26th Oct 2020, 7:45 AM
NINJAX GAMING
NINJAX GAMING - avatar
6 Answers
+ 8
As Théophile said pls tag ur language. When a functions return type is an integer , u have to write a return stmt returning an integer. return 0 is written when u r returning null value just for the sake to meet syntax. For eg: in C++ ,when we write int main() we usually write return 0 at the end.
26th Oct 2020, 7:58 AM
Alphin K Sajan
Alphin K Sajan - avatar
+ 4
NINJAX GAMING Same with C. Read my comment above carefully.
26th Oct 2020, 8:47 AM
Alphin K Sajan
Alphin K Sajan - avatar
0
Which langage? And I don't need return 0; to do programming. 😁
26th Oct 2020, 7:49 AM
Théophile
Théophile - avatar
0
As Alphin k sajan my language is c . please tell y we use return 0;
26th Oct 2020, 8:27 AM
NINJAX GAMING
NINJAX GAMING - avatar