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 are virtual functions implemented in c++?

1014


What is general format for a prototype?

973


What is the average salary of a c++ programmer?

963


Are c and c++ different?

935


How one would use switch in a program?

1024


Will a catch statement catch a derived exception if it is looking for the base class?

962


What are proxy objects in c++?

1129


What is the use of endl?

918


Can constructor be private in c++?

979


True or false, if you keep incrementing a variable, it will become negative a) True b) False c) It depends

2311


What is the difference between the functions memmove() and memcpy()?

1075


int age=35; if(age>80) {Console.WriteLine("Boy you are old");} else {Console.WrieLine("That is a good age");}

1208


What does h mean in maths?

1106


Explain overriding.

952


What is c++ try block?

991