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 extern keyword in c?

1086


Who invented b language?

1341


What is an auto keyword in c?

1048


Who invented bcpl language?

1123


What is difference between union and structure in c?

1073


How is actual parameter different from the formal parameter?

974


how to make a scientific calculater ?

2013


Explain what is the most efficient way to store flag values?

1176


Why do we need volatile in c?

1123


A program is required to print your biographic information including: Names, gender, student Number, Cell Number, line of study and your residential address.

1676


What is difference between Structure and Unions?

1189


What is the difference between printf and scanf )?

1026


Why void is used in c?

954


Explain the meaning of keyword 'extern' in a function declaration.

1117


What are header files why are they important?

1047