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
What is array in c++ example?
write a porgram in c++ that reads an integer and print the biggest digit in the number
What is a c++ vector?
What is do..while loops structure?
Explain terminate() function?
Do vectors start at 0 c++?
How do I download c++?
What does int * mean in c++?
How do you traverse a btree in backward in-order?
What is the benefit of encapsulation?
Why should you learn c++?
Define anonymous class.
how to access grid view row?
What are the advantages of c++? Explain
Can you please explain the difference between static and dynamic binding of functions?