没有问题,下面代码在vc2010运行正常:用的编译器不同?
#include <stdio.h> char * judgement(int state) { return ((0 == state) ? "左岸": "右岸"); } void main() { printf("%s\n",judgement(1)); }