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
What is c system32 taskhostw exe?
What is the deal on sprintf_s return value?
please can any one suggest me best useful video tutorials on c i am science graduate.please help me.u can email me to sas29@in.com
Write a program to print “hello world” without using semicolon?
A c program to display count values from 0 to 100 and flash each digit for a secong.reset the counter after it reaches 100.use for loop,. pls guys hepl me.. :(
What is the purpose of sprintf?
Write a program to reverse a given number in c?
Explain what is the benefit of using const for declaring constants?
how can f be used for both float and double arguments in printf? Are not they different types?
int i=3; this declaration tells the C compiler to a) reserve space in memory to hold the integer value b) associate the name i with this memory location c) store the value 3 at this location d) all the above
Why we use break in c?
What does dm mean sexually?
What does %d do in c?
Explain what is the purpose of "extern" keyword in a function declaration?
What type of function is main ()?