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 are volatile variables in c?
What is ambagious result in C? explain with an example.
What is file in c language?
Explain how do I determine whether a character is numeric, alphabetic, and so on?
Explain the term printf() and scanf() used in c language?
I need a help with a program: Write a C program that uses data input in determining the whole of points A and a whole of circles B. Find two points in A so that the line which passes through them, cut through the maximum number of circles.
hi send me sample aptitude papers of cts?
What is non linear data structure in c?
What is extern variable in c with example?
Explain spaghetti programming?
Why pointers are used?
Why calloc is better than malloc?
Explain pointers in c programming?
I came across some code that puts a (void) cast before each call to printf. Why?
Explain zero based addressing.