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
why we wont use '&' sing in aceesing the string using scanf
what is stack , heap ,code segment,and data segment
Why should I prototype a function?
Explain the difference between malloc() and calloc() function?
What is c token?
Explain how do you list files in a directory?
Can we declare variable anywhere in c?
hw can we delete an internal node of binary search tree the internal node has child node..plz write progarm
List the variables are used for writing doubly linked list program.
Is it fine to write void main () or main () in c?
What is "Hungarian Notation"?
What is non linear data structure in c?
What does it mean when the linker says that _end is undefined?
Stimulate calculator using Switch-case-default statement for two numbers
Explain what is the difference between far and near ?