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 the benefits of organizational structure?
Is null a keyword in c?
What's the difference between constant char *p and char * constant p?
Is a pointer a kind of array?
why to assign a pointer to null sometimes??how can a pointer we declare get assigned with a garbage value by default???
How many parameters should a function have?
Is there any possibility to create customized header file with c programming language?
What is the value of h?
Using which language Test cases are added in .ptu file of RTRT unit testing???
What is the best organizational structure?
What are the properties of union in c?
Is array a primitive data type in c?
What is pointer to pointer in c with example?
What is the difference between memcpy and memmove?
What is the difference between #include