How do functions work in C?