Search code examples
cescapingwhitespacespacekernighan-and-ritchie

What's the escape sequence for blanks in C?


I'm writing a program to count blanks, tabs, and newlines. I remember what the escape sequence for tabs and newlines are, but what about blanks? \b? Or is that backspace?


Solution

  • You mean "blanks" like in "a b"? That's a space: ' '.

    Here's a list of escape sequences for reference.