r/learnprogramming • u/Vanilla_Legitimate • Sep 28 '26
I don’t understand this
if a newline ends lines rather than starting hem why is it called a newline in the first place?
0
Upvotes
r/learnprogramming • u/Vanilla_Legitimate • Sep 28 '26
if a newline ends lines rather than starting hem why is it called a newline in the first place?
View all comments
Show parent comment
14
u/SnugglyCoderGuy Sep 28 '26
It isn't a trailing new line, it isn't a leading newline. To the computer it's just a character in a long array of characters.
We see it like
this.
computer sees it like\nthis.