basics · beginner · ~15 min
Write and return from your first C function.
C is a compiled language for computation. Implement int add(int a, int b) returning their sum.
int add(int a, int b) {
/* TODO */
return 0;
}
Solve this exercise in the browser editor — compile and run against the test harness, no setup required.