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...

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 / nitin

void main()
{
int a,b,c;
printf("enter the values of a,b &c");
scanf("%d%d%d",&a,&b,&c);
c=c+a;
a=c-a;
c=c+b;
b=c-b;
c=c-b;
printf("\n values of ab & c are=%d%d%d",a,b,c);
getch();
}

Is This Answer Correct ?    5 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When the macros gets expanded?

1428


What are the 4 data types?

1024


a single linked list consists of nodes a to z .print the nodes in reverse order from z to a using recursion

2783


What is the code in while loop that returns the output of given code?

2000


A collection of functions,calls,subroutines or other data a) library b) header files c) set of files d) textfiles

1179


What is the difference between %d and %i?

1101


What is string in c language?

1162


What is a pointer on a pointer in c programming language?

1147


The statement, int(*x[]) () what does in indicate?

1152


What happens if header file is included twice?

1153


Why do we use null pointer?

1073


What is the explanation for prototype function in c?

988


What is the right type to use for boolean values in c? Is there a standard type?

1018


‘SAVEPOINT’ and ‘ROLLBACK’ is used in oracle database to secure the data comment. Give suitable examples of each with sql command.

2346


How can I recover the file name given an open stream?

1027