cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
what are these %d or /n
what are these %d or /n
May 31, 2016 at 3:23pm UTC
alirj2010
(2)
characters like %d or /n used in c++, what are these guys called? if i want a full table of these characters, what name should search for??
May 31, 2016 at 3:59pm UTC
Chervil
(7320)
Two different kinds of things.
'\n'
is the newline character, and belongs to the category of escape codes:
http://www.cplusplus.com/doc/tutorial/constants/
%d
most likely is the format specifier character used by certain functions such as
printf()
http://www.cplusplus.com/reference/cstdio/printf/
http://www.cplusplus.com/reference/cstdio/scanf/
Topic archived. No new replies allowed.