Return Values in C — a practical guide to C return values with clear examples you can reuse in real projects.
C Programming Tutorial Series (43/102). Prefer one article? Read the complete C programming tutorial.
Short description
main should return an int status (0 success by convention).
Return
double square(double x) {
return x * x;
}