Given the function definition below, what will the following code display?
int numi = 0, num2 = 1654893;
cout << numi << " " << num2 << endl;
num1 = getLast(num2);
cout << num1 << " " << num2 << endl;
// program continues...
int getLast(int &num2)
{
num2 %= 10;
return num2;
}
0 1654893
1654893 1654893
0 1654893
165489 1654893
None of the other answers are correct.
0 1654893
3 1654893