Code:
int y;
void square(int x, int& result)
{
result = x*x;
}
...
square(3,y);
it says: error C2664: cannot convert parameter 2 from 'int' to 'int &' (on the line where i call the function)
can someone please tell me what can be done?
Comment