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 / rajesh bhansali

#include<stdio.h>

main()
{
int x, y, z, a;
printf("Type values of x, y and z\n");
scanf("%d %d %d",&x,&y,&z);
printf("On rotation we found the following values
assigned to x,y,z.\n");
a=z;
z=x;
x=y;
y=a;
printf("x=%d, y=%d, z=%d", x,y,z);
getch();
}

Is This Answer Correct ?    62 Yes 12 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the total generic pointer type?

1123


What is use of bit field?

1257


Find duplicates in a file containing 6 digit number (like uid) in O (n) time.

3213


What is the difference between new and malloc functions?

1072


Tell me with an example the self-referential structure?

962


Explain what are its uses in c programming?

1036


What is a nested formula?

1078


What are the advantages of using new operator as compared to the function malloc ()?

1298


What is extern storage class in c?

956


Explain the process of converting a Tree into a Binary Tree.

2627


Write a program to reverse a given number in c?

999


Differentiate call by value and call by reference?

928


In c programming language, how many parameters can be passed to a function ?

1072


How do you view the path?

1087


Explain how do you determine whether to use a stream function or a low-level function?

1044