Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

How a modifier is similar to mutator?

1243


How do you find out if a linked-list has an end?

1181


Does std endl flush?

1097


Which function cannot be overloaded c++?

1165


What is the difference between #import and #include in c++?

1170


Explain the different access specifiers for the class member in c++.

1064


What is the basic difference between C and C++?

1236


What is a container class? What are the types of container classes in c++?

1367


What is runtime errors c++?

1170


What is an inclusion guard?

1285


What information can an exception contain?

1208


Discussion on error handling of C++ .

1162


What is the basic structure of c++ program?

1160


What is the purpose of template?

1169


What does namespace mean in c++?

1144