Launch offer
Business website $150 USD Custom plugin $200 USD Ready in 5 days
Get a quote
C Programming

Return Values in C

Return results with return; use void when returning nothing.

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;
}

Leave a reply

Your email address will not be published. Required fields are marked *