Functions & Scope
✓ Completed
Functions are the building blocks of C programs. This lesson covers function declarations, definitions, parameter passing (by value vs. by reference), and variable scope/lifetime.
c
int add(int a, int b) {
return a + b;
}
int main(void) {
printf("%d\n", add(3, 4)); // 7
return 0;
}