Jump to

v05-l2-findOutput

What is the output of the code below ?

int inc_by_two(int& i) {
    i+=2;
    return i;
}

int main(){
    int a = 10, b;
    b = inc_by_two(a);
    cout << a << "," << b << endl;
}

???