469,323 Members | 1,631 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,323 developers. It's quick & easy.

What does \ n mean?

Hello,

I came across this expression in C code \ n. Would anyone know
what this means?
Thanks
Aug 24 '07 #1
1 52232
JosAH
11,448 Expert 8TB
I ripped this straight from the C Standard text:



\a (alert) Produces an audible or visible alert. The active
position shall not be changed.

\b (backspace) Moves the active position to the previous
position on the current line. If the active position is
at the initial position of a line, the behavior is
unspecified.

\f (form feed) Moves the active position to the initial
position at the start of the next logical page.

\n (new line) Moves the active position to the initial
position of the next line.

\r (carriage return) Moves the active position to the
initial position of the current line.

\t (horizontal tab) Moves the active position to the next
horizontal tabulation position on the current line. If
the active position is at or past the last defined
horizontal tabulation position, the behavior is
unspecified.

\v (vertical tab) Moves the active position to the initial
position of the next vertical tabulation position. If
the active position is at or past the last defined
vertical tabulation position, the behavior is
unspecified.
kind regards,

Jos
Aug 24 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

1 post views Thread by Charles Hixson | last post: by
6 posts views Thread by wintaki | last post: by
1 post views Thread by alex14 | last post: by
2 posts views Thread by SMichal | last post: by
2 posts views Thread by mantrid | last post: by
1 post views Thread by Daniel Brower | last post: by
1 post views Thread by Monica Pnade | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by Gurmeet2796 | last post: by
reply views Thread by mdpf | last post: by
reply views Thread by listenups61195 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.