The c function with param such as :
void test(int fp, int &pos){ //do something... }
But i don't understand what does "int &pos" meant .
Thank you very much for your help
The c function with param such as :
void test(int fp, int &pos){ //do something... }
But i don't understand what does "int &pos" meant .
Thank you very much for your help
It means that pos is made a reference variable to the variable being passed during function call(their address becomes the same).ie, any change in pos reflects in the calling variable.For example :
If function call
test(f,p);
changes made to pos will reflect in p.