Skip to content
CSCosmos
C // COSMOS
memory workbench
Overview
Learn
Lab
Problems
Toggle theme
Arena
printf, scanf & Formatted I/O
← 03
05 →
DRILL 04
Easy
Reading an Integer Safely
Which call correctly reads an integer into the variable n?
Choose an answer
A
scanf("%d", n);
B
scanf("%d", &n);
C
scanf("%f", &n);
D
scanf("%c", n);
Show hint