Question: 5. Write C program which takes three integers as input in main() and then calls the void shift(int *, int *, int *) function passing
5. Write C program which takes three integers as input in main() and then calls the void shift(int *, int *, int *) function passing the addresses of those three integers. The shift()function performs the right shift of arguments. For example, if a = 1, b = 2 and c = 3 in main(), then after shift() is executed, the values of a, b and c in main() should be 3, 1 and 2, respectively.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
