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 / swapnil chhajer
#include<stdio.h>
int main()
{
int a,b,c;
printf("Enter three numbers : ");
scanf("%d %d %d",&a,&b,&c);
a = a+b+c;
b = a-b-c;
c = a-b-c;
a = a-b-c;
printf("a : %d b: %d c: %d",a,b,c);
fflush(stdin);
getchar();
}
| Is This Answer Correct ? | 6 Yes | 6 No |
Post New Answer View All Answers
Badboy is defined who has ALL the following properties: Does not have a girlfriend and is not married. He is not more than 23 years old. The middle name should be "Singh" The last name should have more than 4 characters. The character 'a' should appear in the last name at least two times. The name of one of his brothers should be "Ram" Write a method: boolean isBadBoy(boolean hasGirlFriend , boolean isMarried, int age , String middleName , String lastName , String[] brotherName); isHaveGirlFriend is true if the person has a girlfriend isMarried is true if the person is married age is the age of the person middleName is the middle name of the person lastName is the last name of the person brotherName is the array of the names of his brothers
What is the time and space complexities of merge sort and when is it preferred over quick sort?
How do I round numbers?
What is scanf_s in c?
Is null a keyword in c?
What’s a signal? Explain what do I use signals for?
How can I trap or ignore keyboard interrupts like control-c?
What is the difference between far and near in c?
What are the properties of union in c?
List some of the dynamic data structures in C?
What are the primitive data types in c?
What is bss in c?
Why should I use standard library functions instead of writing my own?
Should a function contain a return statement if it does not return a value?
write a program to rearrange the array such way that all even elements should come first and next come odd