Spiegati meglio, il fatto di scrivere
char a;
presuppone che a sia un carattere.