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 / ruchi
#include<stdio.h>
#include<conio.h>
int main()
{
int a,b,c,d;
printf("\nEnter the three numbers ");
scanf("%d %d %d",&a,&b,&c);
a=a+b;
b=a-b;
d=c;
c=a-b;
a=d;
printf("\nNow the values are ");
printf("%d %d %d",a,b,c);
getch();
}
| Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
What is difference between && and & in c?
What is indirection? How many levels of pointers can you have?
Can a file other than a .h file be included with #include?
The % symbol has a special use in a printf statement. How would you place this character as part of the output on the screen?
What does. int *x[](); means ?
How can I do serial ("comm") port I/O?
What is static volatile in c?
What is meant by recursion?
How many levels of pointers have?
Are comments included during the compilation stage and placed in the EXE file as well?
Explain what are its uses in c programming?
Explain what is a stream?
What is the advantage of a random access file?
How is null defined in c?
Explain with the aid of an example why arrays of structures don’t provide an efficient representation when it comes to adding and deleting records internal to the array.