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 are structural members?
GIVEN A FLOATING POINT NUMBER HOW IS IT ACTUALLY STORED IN MEMORY ? CAN ANYONE EXPLAIN?? THE 32 BIT REPRESENTATION OF A FLOATING POINT NUMBER ALLOTS: 1 BIT-SIGN 8 BITS-EXPONENT 23 BITS-MANTISSA
How can I get back to the interactive keyboard if stdin is redirected?
What is function what are the types of function?
What are the advantages of Macro over function?
What does c mean in standard form?
Write a program to print "hello world" without using a semicolon?
HOW TO SOLVE A NUMERICAL OF LRU IN OS ??????
Is c is a middle level language?
Differentiate between null and void pointers.
In C language what is a 'dangling pointer'?
What is an lvalue?
program to find out date after adding 31 days to a date in the month of febraury also consider the leap year
C program execution always begins with a) #include b) comment (/*-------*/) c) main() d) declaration instructions
Explain the difference between #include "..." And #include <...> In c?