Top "Char" questions

char typically refers to a character data-type, representing letters of text.

Why we can't have "char" enum types

I want to know why we can't have "char" as underlying enum type. As we have byte,sbyte,int,uint,…

c# enums char
How can I bitwise XOR two C char arrays?

I feel silly for not being able to figure this out, but I am lost. I am trying to XOR …

c arrays char bit-manipulation xor
MySQL - TEXT vs CHAR and VARCHAR

Reading this question, a doubt popped into my head: char and varchar can store up to 255 chars text can store …

mysql text types char varchar
Why can't I static_cast between char * and unsigned char *?

Apparently the compiler considers them to be unrelated types and hence reinterpret_cast is required. Why is this the rule?

c++ char reinterpret-cast static-cast unsigned-char
Check whether two strings are anagrams using C++

The program below I came up with for checking whether two strings are anagrams. Its working fine for small string …

c++ string char anagram
Why should I ever choose any other length than 255 for varchar in MySQL?

I know the differnce between CHAR and VARCHAR, CHAR - Fixed length VARCHAR - Variable length (size + 1 byte) But I …

mysql char varchar
how to check if a character is equal to double quote in java

I want to check the value of a char to see if it is double quote or not in Java. …

java char double-quotes
C char to string (passing char to strcat())

my problem is in convert a char to string i have to pass to strcat() a char to append to …

c string char strcat
What does it mean for a char to be signed?

Given that signed and unsigned ints use the same registers, etc., and just interpret bit patterns differently, and C chars …

c string character-encoding char signed
What is this char? 65279 ''

I have two strings. one is "\"" and the other is "\"" I think that they are same. However, String.Compare says …

c# char