C++, ternary operator and cout

后端 未结 2 1172
情话喂你
情话喂你 2021-01-28 05:01

this code doesn\'t work

int main(){
cout << 5 ? (5 ? 0 : 2) : 5;
system(\"pause\");
return 0;
}

this code works

int main(         


        
2条回答
提交回复
热议问题