What does '\r' and '\b' mean? Please explain with example.
Answer Posted / siva
above two answers are wrong.
i tested the following is the correct answer
\r is known as carriage return
e.g printf("ABC\rDE");
DE will get printed.
\b is known as back literal
e.g. printf("ABC\bDE");
ABDE will get printed.
| Is This Answer Correct ? | 31 Yes | 21 No |
Post New Answer View All Answers
What is the best free c++ compiler for windows?
Is c++ a programming language?
Which bit wise operator is suitable for putting on a particular bit in a number?
Why is c++ so fast?
What is the difference between an external iterator and an internal iterator? Describe an advantage of an external iterator?
What is format for defining a structure?
What is the difference between containment and delegation?
Why is "using namespace std;" considered bad practice?
What is the difference between an array and a list?
When one must use recursion function? Mention what happens when recursion functions are declared inline?
What is array give example?
When do you call copy constructors?
How to implement is-a and has-a class relationships?
What do you mean by inheritance in c++? Explain its types.
Assume an array of structure is in order by studentID field of the record, where student IDs go from 101 to 500. Write the most efficient pseudocode algorithm you can to find the record with a specific studentID if every single student ID from 101 to 500 is used and the array has 400 elements. Write the most efficient pseudocode algorithm you can to find a record with a studentID near the end of the IDs, say in the range from 450 to 500, if not every single student ID in the range of 101 to 500 is used and the array size is only 300