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 / likhit gatagat

#include<stdio.h>

main()
{
int a,b,c,p,q,r;
printf("Enter three numbers:\n");
Scanf("%d%d%d",&a,&b,&c);
p=a;
q=b;
r=c;
b=p;
c=q;
a=r;
printf("%d%d%d",a,b,c);
}

Is This Answer Correct ?    17 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are volatile variables in c?

905


What is ambagious result in C? explain with an example.

2571


What is file in c language?

976


Explain how do I determine whether a character is numeric, alphabetic, and so on?

1108


Explain the term printf() and scanf() used in c language?

1014


I need a help with a program: Write a C program that uses data input in determining the whole of points A and a whole of circles B. Find two points in A so that the line which passes through them, cut through the maximum number of circles.

1912


hi send me sample aptitude papers of cts?

2121


What is non linear data structure in c?

986


What is extern variable in c with example?

972


Explain spaghetti programming?

1210


Why pointers are used?

1035


Why calloc is better than malloc?

1000


Explain pointers in c programming?

1086


I came across some code that puts a (void) cast before each call to printf. Why?

1174


Explain zero based addressing.

980