I know char *x means a pointer to char, but I\'m confused about what (char*) x means.
char *x
(char*) x
() is the cast operator.
()
(char *) x means "apply the cast operator to operand x".
(char *) x
The cast operator converts the value of the operand to the type between ().