471,854 Members | 1,535 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,854 software developers and data experts.

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 52610
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
reply views Thread by YellowAndGreen | last post: by
aboka
reply views Thread by aboka | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.