jeudi 25 avril 2019

multiple choice question with 4 int values

So to my understanding the answer here should be -1 because A gets replaced with 5. However I am not sure

int a = 4, b = 3, d = 6, e = 8;

int MODIFY(int a, int b) {
return(a - d);
}

int main() {
 int answer = MODIFY(5, 0);
 std::cout << answer;
}

Aucun commentaire:

Enregistrer un commentaire