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
a character or group of characters that defines a register,or a part of storage a) memory b) byte c) address d) linear list
Here is a neat trick for checking whether two strings are equal
What are the two types of functions in c?
Explain what’s a signal? Explain what do I use signals for?
write a program to copy the string using switch case?
Not all reserved words are written in lowercase. TRUE or FALSE?
What is anagram in c?
Hi how many types of software editions are there and their difference (like home editions, enterprise, standard etc) can u please help me
What is the difference between c and python?
What is a pragma?
How to set file pointer to beginning c?
What is meant by type casting?
what is the difference between 123 and 0123 in c?
What are valid signatures for the Main function?
int i=10; printf("%d %d %d", i, i=20, i);