Write a program that takes three variables(a,b,c) in as
separate parameters and rotates the values stored so that
value a goes to b,b,to c and c to a
Answer Posted / maddy :)
#include <stdio.h>
#include <conio.h>
void main()
{
int x=1,y=2,z=3,s=0;
s=x,x=y,y=z,z=s;
printf("The value of x=%d,y=%d,z=%d",x,y,z);
}
Is This Answer Correct ? | 7 Yes | 3 No |
Post New Answer View All Answers
What is class and object in c?
Can you please compare array with pointer?
What does nil mean in c?
show how link list can be used to repersent the following polynomial i) 5x+2
What are the storage classes in C?
What is a struct c#?
Is it acceptable to declare/define a variable in a c header?
Do you know what are the properties of union in c?
What is the best organizational structure?
Compare interpreters and compilers.
What is the maximum length of an identifier?
Add Two Numbers Without Using the Addition Operator
a single linked list consists of nodes a to z .print the nodes in reverse order from z to a using recursion
How can I remove the trailing spaces from a string?
Why c is called object oriented language?