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 / maddy :)

#include <stdio.h>
#include <conio.h>
void main()
{
int x=1,y=2,z=3,s=0;
s=x,x=y,y=z,z=s;
printf("The value of x=%d,y=%d,z=%d",x,y,z);
}

Is This Answer Correct ?    7 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between variable declaration and variable definition in c?

1037


Explain what is the concatenation operator?

1132


Are there constructors in c?

984


Explain data types & how many data types supported by c?

1053


How do you use a 'Local Block'?

1141


What is the purpose of sprintf() function?

1082


What are the application of void data type in c?

1160


What is volatile c?

979


What is the right way to use errno?

1021


a function gets called when the function name is followed by a a) semicolon (;) b) period(.) c) ! d) none of the above

1358


what is the differnce between programing langauge and tool? is sas is a programing langauge r tool?

2337


How do you do dynamic memory allocation in C applications?

1065


explain what is fifo?

1046


What is an array? What the different types of arrays in c?

1130


How can I find out how much free space is available on disk?

1031