Quote:
Originally Posted by markem
"The sequence \n in the string is C notation for the newline character, which when printed advances the terminal to the left margin of the next line." (Kernighan and Ritchie, "The C Programming Language" 1978, p. 7.
As someone who used to write terminal device drivers, I can assure you that advancing to the left margin of the next line encompasses (conceptually if not in fact) a line feed (vertical offset) and carriage return (horizontal offset).
Don't try to outgeek the computer science professor on this particular score. ASCII value != C implementation (which can vary based on device driver and OS).

|
Hahaha, not trying to outsmart, just giving you a hard time <3
Glad there's some felllow coders on here!