Consider functions A, B and C.
void A(){
int arg;
B(arg);
}
void B(int& arg){
C(arg)
}
void C(int& arg){
arg = 10;
}
I want value of my argument to be set by function C. This code gives an error. The order of the function calls has to be A calls B, which calls C. How to do this?