Hullo hullo
I was wondering if this is okay to do:
And then use X in both functions as one in the same. So if in Function2 I change X to 5, it will change the X in Function1 to 5 as well (and vice versa).Code:void Function2(int &MainX) { int X; &X = MainX } void Function1(void) { int X = 2; Function2(X); }
Is that okay to do?



LinkBack URL
About LinkBacks



