2 ms·
I deliberately used the character literal ‘A’ and not any of your UTF8 strings. I think you are mistaken to confuse a character with your strings. Is this wrong
by robotresearcher 9y ago
I deliberately used the character literal ‘A’ and not any of your UTF8 strings. I think you are mistaken to confuse a character with your strings. Is this wrong?
- coldtea 9y agoYou can have a unicode character literal -- and depending on the language there's no distinction between character and string (at the type level), a character is just a string of length 1.
- robotresearcher 9y agoI was assuming C, where there is a difference. int main() { printf( "%d %d\n", 'A', "A" ); return 0; } produces: 65 197730221 since the value of string "A" is its base address.