0
前面調用帶負號的函數的結果是什麼?是否將返回值轉爲負值?C:帶有負號的重複函數調用
int someFunction(int newBoard[9], int aValue) {
for(i = 0; i < 9; ++i) {
if(newBoard[i] == 0) {
newBoard[i] = player;
int thisScore = -someFunction(newBoard, aValue*-1);
// why this function being called with a negative sign? Is to turn the return value into negative?
}
}
return someValue
}