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
What is a pointer value and address in c?
Can you define which header file to include at compile time?
Do character constants represent numerical values?
Iam a B.Tech graduate and completed my engineering in 2009, from 2005 to 2009 and after that i had done nothing.Now i want to do job and get into BPO field . Friends give me suggestions as what to say in interview... if they ask me that what would you had done ... these many years without doing job ??????? pls urgent
Which is best book for data structures in c?
Explain the use of keyword 'register' with respect to variables.
What is sizeof return in c?
Why do we use int main instead of void main in c?
Which driver is a pure java driver
What is masking?
What is #line in c?
how much salary u want ? why u join in our company? your domain is core sector why u prefer software ?
What is the function of this pointer?
What is c token?
What is d'n in c?