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 extern keyword in c?
Who invented b language?
What is an auto keyword in c?
Who invented bcpl language?
What is difference between union and structure in c?
How is actual parameter different from the formal parameter?
how to make a scientific calculater ?
Explain what is the most efficient way to store flag values?
Why do we need volatile in c?
A program is required to print your biographic information including: Names, gender, student Number, Cell Number, line of study and your residential address.
What is difference between Structure and Unions?
What is the difference between printf and scanf )?
Why void is used in c?
Explain the meaning of keyword 'extern' in a function declaration.
What are header files why are they important?