All lessons

Functions

9 min · C

Package code under a name so you can reuse it.

C · Functions0/5 cleared

Enemy 1 of 5

A function names a block of code. Declare its return type and parameter types, and define it above main.

Use return to hand a value back.

You
Syntax Skeleton

Loading editor...

Ln 1, Col 1Spaces: 4
Sign up to fightTarget output: 10