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 are virtual functions implemented in c++?
What is general format for a prototype?
What is the average salary of a c++ programmer?
Are c and c++ different?
How one would use switch in a program?
Will a catch statement catch a derived exception if it is looking for the base class?
What are proxy objects in c++?
What is the use of endl?
Can constructor be private in c++?
True or false, if you keep incrementing a variable, it will become negative a) True b) False c) It depends
What is the difference between the functions memmove() and memcpy()?
int age=35; if(age>80) {Console.WriteLine("Boy you are old");} else {Console.WrieLine("That is a good age");}
What does h mean in maths?
Explain overriding.
What is c++ try block?