Revision: Scanf
UNSW COMP1511 · 3:50
scanf in C looks like a simple way to read user input, but its return value and how %c treats leftover whitespace (especially the newline from Enter) routinely produce surprising results. The video shows how to use th...