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

a character or group of characters that defines a register,or a part of storage a) memory b) byte c) address d) linear list

994


Here is a neat trick for checking whether two strings are equal

1005


What are the two types of functions in c?

988


Explain what’s a signal? Explain what do I use signals for?

1135


write a program to copy the string using switch case?

2881


Not all reserved words are written in lowercase. TRUE or FALSE?

1219


What is anagram in c?

901


Hi how many types of software editions are there and their difference (like home editions, enterprise, standard etc) can u please help me

1939


What is the difference between c and python?

1155


What is a pragma?

1112


How to set file pointer to beginning c?

1188


What is meant by type casting?

1046


what is the difference between 123 and 0123 in c?

1191


What are valid signatures for the Main function?

1214


int i=10; printf("%d %d %d", i, i=20, i);

1605