I'm a beginner in C++. I saw \b and \r in a program source code. I've seen \n and I know its purpose. But why do we use \r and \b in C++? Please clear my doubt.
Thank You.
paruse -5 Newbie Poster
Recommended Answers
Jump to PostPost by jonsca and tux4life have divulged all the information related to this topic.But would like to add some from my side.
Apart from the printable characters (character which can be seen on a output screen) we make use of several other operations when working on any text.
When …
Jump to Post\b = it's purpose is backspace
\r = purpose is carriage returni want the purpose of for(;;)
please clear my doubt
thank youfor(;;) is an infinite loop and used where the number of iterations is unknown.
All 8 Replies
jonsca 1,059 Quantitative Phrenologist Team Colleague Featured Poster
warbird43 -1 Newbie Poster
tux4life commented: rep - beggar! -1
tux4life 2,072 Postaholic
csurfer 422 Posting Pro
ganga.0006 0 Newbie Poster
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
Harshul_1 0 Newbie Poster
Shafiq_1 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.