What's the escape sequence for blanks in C?

MW2000 picture MW2000 · Jul 22, 2010 · Viewed 68.3k times · Source

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?

Answer

GManNickG picture GManNickG · Jul 22, 2010

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

Here's a list of escape sequences for reference.