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


Please Help Members By Posting Answers For Below Questions

What is class and object in c?

581


Can you please compare array with pointer?

609


What does nil mean in c?

667


show how link list can be used to repersent the following polynomial i) 5x+2

1672


What are the storage classes in C?

619






What is a struct c#?

597


Is it acceptable to declare/define a variable in a c header?

678


Do you know what are the properties of union in c?

577


What is the best organizational structure?

635


Compare interpreters and compilers.

633


What is the maximum length of an identifier?

657


Add Two Numbers Without Using the Addition Operator

350


a single linked list consists of nodes a to z .print the nodes in reverse order from z to a using recursion

2330


How can I remove the trailing spaces from a string?

606


Why c is called object oriented language?

576