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

Will this c++ program execute or not?

1071


What is c++ similar to?

1168


Explain class invariant.

1047


which one is equivalent to multiplying by 2:Left shifting a number by 1 or Left shifting an unsigned int or char by 1?

1172


In c++, what is the difference between method overloading and method overriding?

1120


Can constructor be static in c++?

1097


What do you mean by public protected and private in c++?

1042


Ask to write virtual base class code?

2738


Does dev c++ support c++ 11?

1002


How does list r; differs from list r();?

1133


What is a hash function c++?

1054


Who discovered c++?

1029


Explain shallow copy?

1032


Explain Memory Allocation in C/C++ ?

1057


What is fflush c++?

999