C Program To Shift Variable Values Circularly To Right
Satish B
https://technotip.com/7972/c-program-to-shift-variable-values-circularly-to-right/
Given three variables x, y, z write a function to circularly shift their values to right. In other words if x = 5, y = 8, z = 10, after circular shift y = 5, z = 8, x = 10. Call the function with variables a, b, c to circularly shift values.
Analyze The Above Problem Statement
- We need to write a function which receives 3 numbers.
- Inside the function we need to swap the values of 3 variables circularly to the right.
i.e., value of x to y, value of y to z, and value of z to a.
Very Important Note: Any address preceded by a * (Indirection operator) will fetch the value present at that address.
C Programming Interview / Viva Q&A List https://technotip.com/6378/c-programming-interview-viva-qa-list/
C Programming: Beginner To Advance To Expert https://technotip.com/6086/c-programming-beginner-to-advance-to-expert/ ... https://www.youtube.com/watch?v=VWh8WKUT5Fc
9619158 Bytes