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

why we wont use '&' sing in aceesing the string using scanf

2381


what is stack , heap ,code segment,and data segment

2714


Why should I prototype a function?

1210


Explain the difference between malloc() and calloc() function?

1063


What is c token?

1080


Explain how do you list files in a directory?

1083


Can we declare variable anywhere in c?

987


hw can we delete an internal node of binary search tree the internal node has child node..plz write progarm

2033


List the variables are used for writing doubly linked list program.

2041


Is it fine to write void main () or main () in c?

1041


What is "Hungarian Notation"?

1126


What is non linear data structure in c?

1046


What does it mean when the linker says that _end is undefined?

1111


Stimulate calculator using Switch-case-default statement for two numbers

3010


Explain what is the difference between far and near ?

1118