Make sure you are actually passing by reference (i.e. prefacing variable names with '&').the comments should be replace with what ever code is need to grab the variables from the function, and yes i did modify the function and test the program, it gave:
116
116
Code:void function(int &a, int &b) { a *= 2; b /= 4; }