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 the benefits of organizational structure?

973


Is null a keyword in c?

1139


What's the difference between constant char *p and char * constant p?

1089


Is a pointer a kind of array?

1115


why to assign a pointer to null sometimes??how can a pointer we declare get assigned with a garbage value by default???

1913


How many parameters should a function have?

1127


Is there any possibility to create customized header file with c programming language?

1003


What is the value of h?

988


Using which language Test cases are added in .ptu file of RTRT unit testing???

4217


What is the best organizational structure?

1067


What are the properties of union in c?

995


Is array a primitive data type in c?

1001


What is pointer to pointer in c with example?

982


What is the difference between memcpy and memmove?

968


What is the difference between #include

and #include “header file”?

970