A note on ungetc
Every alternative ended with a call to ungetc except the case where we have read EOF
We know that ungetc(EOF, f) has no effect
We can therefore merge the calls to ungetc into one
Previous slide
Next slide
Back to first slide
View graphic version