Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

Explain what are binary trees?

1019


In C programming, what command or code can be used to determine if a number of odd or even?

988


Can the size of an array be declared at runtime?

1023


What is wild pointer in c?

1011


What are the 5 elements of structure?

1037


What is structure packing in c?

1024


why do some people write if(0 == x) instead of if(x == 0)?

1011


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

1202


what is the basis for selection of arrays or pointers as data structure in a program

4248


What is the purpose of macro in C language?

1063


What is the use of bitwise operator?

1065


What is the difference between printf and scanf in c?

1283


‎How to define structures? · ‎

1028


What is local and global variable in c?

1126


Difference between Shallow copy and Deep copy?

1967