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

Define the scope of static variables.

1136


What is calloc malloc realloc in c?

1067


Explain threaded binary trees?

1170


Is c dynamically typed?

1170


How can I invoke another program (a standalone executable, or an operating system command) from within a c program?

1223


What is nested structure with example?

1084


Hi how many types of software editions are there and their difference (like home editions, enterprise, standard etc) can u please help me

1955


What are the differences between Structures and Arrays?

1222


What is the difference between strcpy() and memcpy() function in c programming?

1097


Can the curly brackets { } be used to enclose a single line of code?

1177


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

1006


How can you increase the allowable number of simultaneously open files?

1167


What do you mean by recursion in c?

1119


Which node is more powerful and can handle local information processing or graphics processing?

1331


What are identifiers and keywords in c?

1108