plz answer....A program that takes 3 variables e.g a,b,c in
as seperate parameters and rotates the values stored so
that value goes a to b, b to c and c to a .
Answer Posted / swapnil chhajer
#include<stdio.h>
int main()
{
int a,b,c;
printf("Enter three numbers : ");
scanf("%d %d %d",&a,&b,&c);
a = a+b+c;
b = a-b-c;
c = a-b-c;
a = a-b-c;
printf("a : %d b: %d c: %d",a,b,c);
fflush(stdin);
getchar();
}
| Is This Answer Correct ? | 6 Yes | 6 No |
Post New Answer View All Answers
Explain what are binary trees?
In C programming, what command or code can be used to determine if a number of odd or even?
Can the size of an array be declared at runtime?
What is wild pointer in c?
What are the 5 elements of structure?
What is structure packing in c?
why do some people write if(0 == x) instead of if(x == 0)?
c programs are converted into machine language with the help of a) an interpreter b) a compiler c) an operatinf system d) none of the above
what is the basis for selection of arrays or pointers as data structure in a program
What is the purpose of macro in C language?
What is the use of bitwise operator?
What is the difference between printf and scanf in c?
How to define structures? ·
What is local and global variable in c?
Difference between Shallow copy and Deep copy?