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
Will this c++ program execute or not?
What is c++ similar to?
Explain class invariant.
which one is equivalent to multiplying by 2:Left shifting a number by 1 or Left shifting an unsigned int or char by 1?
In c++, what is the difference between method overloading and method overriding?
Can constructor be static in c++?
What do you mean by public protected and private in c++?
Ask to write virtual base class code?
Does dev c++ support c++ 11?
How does list r; differs from list r();?
What is a hash function c++?
Who discovered c++?
Explain shallow copy?
Explain Memory Allocation in C/C++ ?
What is fflush c++?