context: when using functions, and are passing by reference.
type func_Do_Something( type &b, type a)
{
cin>>variable;
variable = b;
}
int main()
{
//call
funct_Do_Something(x,y);
return 0;
}
i basically wanted to know when the pass by reference returned to main.
is it when the function is finished or is it immediately after the variable b gets a value.
dont worry about the program compiling. i know it wont, but i just need a concept answer thanks.
a swift response would be appreciated cus i want to go to sleep soon >_<
type func_Do_Something( type &b, type a)
{
cin>>variable;
variable = b;
}
int main()
{
//call
funct_Do_Something(x,y);
return 0;
}
i basically wanted to know when the pass by reference returned to main.
is it when the function is finished or is it immediately after the variable b gets a value.
dont worry about the program compiling. i know it wont, but i just need a concept answer thanks.
a swift response would be appreciated cus i want to go to sleep soon >_<