Asked • 04/10/19

The "backspace" escape character '\\b': unexpected behavior?

So I'm finally reading through https://en.wikipedia.org/wiki/The_C_Programming_Language, and I learned something within the first few pages, that there is a backspace escape character, `\\b`.So I go to test it out, and there is some very odd behavior: #include main () { printf("hello worl\\b\\bd\\n"); } The output is "hello wodl". Can anyone explain this?

1 Expert Answer

By:

Larry C. answered • 04/11/19

Tutor
4.9 (294)

Computer Science and Mathematics professional

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.