Usage of \b and \r in C
The characters will get send just like that to the underlying output device (in your case probably a terminal emulator). It is up to the terminal’s implementation then how those characters get actually displayed. For example, a bell (\a) could trigger a beep sound on some terminals, a flash of the screen on others, or …