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 #include sstream?
Is swift faster than go?
what is pre-processor in C++?
Is c++ double?
What are the defining traits of an object-oriented language?
Is c++ free?
Write a note about the virtual member function?
What are the 2 main types of data structures?
What is format for defining a structure?
What is the C-style character string?
What is encapsulation in C++? Give an example.
What is the operator in c++?
Define Virtual function in C++.
What is algorithm in c++ programming?
What is a singleton class c++?