C languageC SolutionChapter 6Programming

Q14 Given three variables x, y, z write a function to circularly shift their values to right. In order 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.

Program: 135

Given three variables x, y, z write a function to circularly shift their values to right.

In order 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.

Output:

Enter x: 5
Enter y: 8
Enter z: 10
Before Shift: x: 5 y: 8 z: 10
After Shift: x: 10 y: 5 z: 8

Lokesh Kumar

Being EASTER SCIENCE's founder, Lokesh Kumar wants to share his knowledge and ideas. His motive is "We assist you to choose the best", He believes in different thinking.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.