This code does 9 things:
- First, it declares some variables
c
andold_c
, - Then it reads input from the keyboard into
c
. - After that, it checks to see if
old_c
isand
c
is not.
- If so, it prints a space and the character last pressed.
- Otherwise, it just prints the character last pressed.
- Then,
old_c
is set toc
. - Jump to 2 until input is stopped (usually with CTRL+D or the enter key)
- It then loads the return value (
0
, in this case), - and it exits with that return value.