basically, how do i pass an integer variable by reference so I can change the value of the parameter variables after the function call.Code:void swap(int & a, int & b) { int temp; temp = a; a = b; b = temp; }
|
Results 1 to 5 of 5
Threaded View
|
Click Here to Expand Forum to Full Width |