View Single Post
Old 02-10-2012, 11:02 AM   #5063
fencefixer
Feeling at Home
 
fencefixer's Avatar
 
Join Date: Feb 2012
Posts: 544
Trading: (7)
fencefixer will become famous soon enoughfencefixer will become famous soon enough
Default Re: Funny Pics thread

Quote:
Originally Posted by markem View Post
"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!
fencefixer is offline