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 category do %d or /n fall in?
what category do %d or /n fall in?
May 31, 2016 at 3:24pm 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 4:01pm UTC
Peter87
(11238)
If you mean the newline character \n it's called an
escape sequence
.
http://en.cppreference.com/w/cpp/language/escape
%d is not one character. It's just a regular '%' character followed by a 'd' character. They only have a special meaning with some functions like printf, scanf, etc. The term you are looking for is
format specifier
or
conversion specifier
.
http://en.cppreference.com/w/cpp/io/c/fprintf
http://en.cppreference.com/w/cpp/io/c/fscanf
Topic archived. No new replies allowed.