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 the purpose of realloc()?
Explain can the sizeof operator be used to tell the size of an array passed to a function?
What is the Purpose of 'extern' keyword in a function declaration?
How can I do serial ("comm") port I/O?
Why is structure padding done in c?
What is variable initialization and why is it important?
How can you find the exact size of a data type in c?
What is union in c?
How to write a program for machine which is connected with server for that server automatically wants to catch the time for user of that machine?
What do you mean by dynamic memory allocation in c? What functions are used?
When should a type cast be used?
Are the outer parentheses in return statements really optional?
What is the role of && operator in a program code?
What is sizeof int in c?
What is non linear data structure in c?