在C++中,如果我编写以下if语句.什么是潜在的问题?行为是否定义明确?谢谢.
int i = 0; // func1 will return the updated value for i. // func2 will use the new value of i. if (func1(i) && func2(i)) { ...}
或者可能&&可以更改为||,呼叫仍然是好的吗?
c++ if-statement
c++ ×1
if-statement ×1