Skip to content

Glossary: C Basics

scanf

Reads values from the keyboard into variables, such as `scanf("%d", &qty)`. It returns how many values it read, so 1 means success.

Where the book teaches it

Related terms

Address-of operator (&)sscanf and fscanfFormat specifier