Skip to content

Functions, parameters, and return values

Handout

Why functions

  • A function is a named piece of work. You write it once and call it whenever you need it.
  • Functions keep programs short and clear, and let you build big jobs from small ones.
  • You have already used printf — a function from <stdio.h>. Now you write your own.

Handout

Log in or create account

IGCSE & A-Level