wrote:
> what is the difference between a single character and a string
> consisting only one character
One's a single character, and the other is a sequence containing
a single character, implemented as a pointer to a sequence of
characters the second of which is a terminating nul character and
the first is the character in the string.
It's like the difference between an apple and a paper bag containing
an apple: the bag is not an apple, even though you can get an apple
out of it, or replace the apple with an orange. (Since the string
bag can contain only one fruit character, you can't mix apples and
oranges [1].)
[1] In this bag. In bigger bags you can.
--
Perhaps Caffeine Now? Hedgehog
"A facility for quotation covers the absence of original thought." /Gaudy Night/