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...

plz answer....A program that takes 3 variables e.g a,b,c in
as seperate parameters and rotates the values stored so
that value goes a to b, b to c and c to a .

Answer Posted / venkatesh sabinkar

void main()
{
int a,b,c,t;
clrscr();
printf("enter the values of a, b and c");
scanf("%d%d%d",&a,&b,&c);
t=a;
a=b;
b=c;
c=t;
printf("a=%d,b=%d,c=%d",a,b,c);
getch();
}

Is This Answer Correct ?    9 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain what are the advantages and disadvantages of a heap?

1076


Is the exit() function same as the return statement? Explain.

1074


What are the 3 types of structures?

1017


Do you know the use of fflush() function?

1049


how to create duplicate link list using C???

2541


what is uses of .net

1720


How many identifiers are there in c?

1003


Draw a diagram showing how the operating system relates to users, application programs, and the computer hardware ?

2561


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

2967


What are identifiers c?

1062


What is header file definition?

1070


If a five digit number is input through the keyboard, write a program to print a new number by adding one to each of its digits.For example if the number that is input is 12391 then the output should be displayed as 23402

3898


What is a shell structure examples?

1076


Write a program with dynamically allocation of variable.

1107


What is derived datatype in c?

1071