Is space a character ?
Printable View
Is space a character ?
No. Also, in addition to whitespace, tabs, linefeeds, newlines, etc. are generally considered 'space'.
Yes, a space literal (' ') is a character, or perhaps more precisely, a char literal.
Are the answers different?
No, Laserlight is correct. It's early, and for some reason I was thinking 'alphanumeric character'. :)
Yes, they are two different answers. Yes, space is a character. But depending on the circumstances, it may be "ignored" by functions and applications. Other times it is very much "used" or "meaningful".
As a part of the ascii character set, space is definitely a character, with the value 0x20 (32 decimal). Other character sets may use other values.
--
Mats
So, space is a character
Nice. Thanks
For that matter, Unicode defines about 10 different space characters - space, n-width space, m-width space, zero-width non-joiner, non-breaking space, and more.