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 the difference between variable declaration and variable definition in c?
Explain what is the concatenation operator?
Are there constructors in c?
Explain data types & how many data types supported by c?
How do you use a 'Local Block'?
What is the purpose of sprintf() function?
What are the application of void data type in c?
What is volatile c?
What is the right way to use errno?
a function gets called when the function name is followed by a a) semicolon (;) b) period(.) c) ! d) none of the above
what is the differnce between programing langauge and tool? is sas is a programing langauge r tool?
How do you do dynamic memory allocation in C applications?
explain what is fifo?
What is an array? What the different types of arrays in c?
How can I find out how much free space is available on disk?