To print a character you need to pass the value of the character to printf . The value can be referenced as name[0] or *name (since for an array ... ... <看更多>
int x = 'a' * 2; char y = 'a' * 2; printf("x: %d\n", x); printf("y: ... Not only that, a string in C is represented by a character array, ... ... <看更多>