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 / venkatesh sabinkar

void main()
{
int a,b,c,t;
clrscr();
printf("enter the values of a, b and c");
scanf("%d%d%d",&a,&b,&c);
t=a;
a=b;
b=c;
c=t;
printf("a=%d,b=%d,c=%d",a,b,c);
getch();
}

Is This Answer Correct ?    9 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the purpose of realloc()?

1149


Explain can the sizeof operator be used to tell the size of an array passed to a function?

1078


What is the Purpose of 'extern' keyword in a function declaration?

1084


How can I do serial ("comm") port I/O?

1184


Why is structure padding done in c?

1137


What is variable initialization and why is it important?

1273


How can you find the exact size of a data type in c?

1005


What is union in c?

1120


How to write a program for machine which is connected with server for that server automatically wants to catch the time for user of that machine?

2105


What do you mean by dynamic memory allocation in c? What functions are used?

1169


When should a type cast be used?

1023


Are the outer parentheses in return statements really optional?

1122


What is the role of && operator in a program code?

1079


What is sizeof int in c?

1064


What is non linear data structure in c?

1036