What does '\r' and '\b' mean? Please explain with example.
Answer Posted / ankita
\r is known as carriage return
e.g printf("ABC\rDE");
ABC.
then becoz of \r cursor comes back to the 1st char i.e here
A after that DE is there then finally it print
DEC with cursor on C.
\b is known as back literal
e.g. printf("ABC\bDE");
then ABC then finally ABDE will get printed.
| Is This Answer Correct ? | 63 Yes | 27 No |
Post New Answer View All Answers
How a modifier is similar to mutator?
How do you find out if a linked-list has an end?
Does std endl flush?
Which function cannot be overloaded c++?
What is the difference between #import and #include in c++?
Explain the different access specifiers for the class member in c++.
What is the basic difference between C and C++?
What is a container class? What are the types of container classes in c++?
What is runtime errors c++?
What is an inclusion guard?
What information can an exception contain?
Discussion on error handling of C++ .
What is the basic structure of c++ program?
What is the purpose of template?
What does namespace mean in c++?