I'm pretty proficient in PHP, but I've started dabbling with C. I've seen the code
return 0;
at the end of functions that don't return a value. This isn't used in PHP, because if a function is doesn't have a return, a value NULL is automatically returned.
All I'm asking is, in simple English, what does the return 0
actually do? Is it like PHP, where it returns its argument as the value of the function call? Is it just good practice?
I know this question has been asked many times before, but I'm asking it from the point of view of a PHP developer. The answers google throws up haven't been that concise.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…