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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!