Question: You have two variables (a , b) in the main function. Assign the last digit of your arid number to variable a and 2nd last
You have two variables (a , b) in the main function. Assign the last digit of your arid number to variable a and 2nd last digit to variable b. Pass addresses of these two variables to a function. The function will swap the values of these variables using the addresses it receives from the main function. Display the swapped value of the variables in the main function. Add screen shot of your program output after the code.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
