在Ubuntu下gcc编译输出 sizeof(‘A’), 结果为 4 g++编译输出 sizeof(‘A’), 结果为 1 后来查了一下《The C Programing Language》 原来C语言规定所有字符常量为整型! 特记于此