New line, carriage return and tab representation in c/c++

Characters representation table

Name Character Decimal value Hexadecimal value Octal value String value
New line (line feed) LF 10 0x0A 012 \n
Carriage return CR 13 0x0D 015 \r
Tab TAB 9 0x09 011 \t

References: www.asciitable.com

No comments:

Post a Comment