0

Why we have to code RETURN0 IN "C"

C program

28th Sep 2020, 4:44 AM
Nitin Srinivas
Nitin Srinivas - avatar
1 Odpowiedź
+ 3
Based on my understanding, when you write int main() in C, you're actually creating a function that returns a value of type int. In this case, the main function returns 0 to signal the OS that the program has run successfully.
28th Sep 2020, 4:58 AM
Zerokles
Zerokles - avatar