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 is new line escape sequence?
What is the difference between formatted&unformatted i/o functions?
What are the features of c language?
what are the facialities provided by you after the selection of the student.
What is adt in c programming?
How old is c programming language?
What is the difference between variable declaration and variable definition in c?
If jack lies on Mon, Tue Wed and jill lies on Thursday, Friday and Saturday. If both together tell they lied yesterday. So c the given options and then c cos in the given dates one will be saying the truth and one will be lying. I got Thursday as option because jack is saying the truth he lied yest but jill is lying again as he lies on that day.
What does 1f stand for?
Can the size of an array be declared at runtime?
1) There is a singing competition for children going to be conducted at a local club. Parents have been asked to arrive at least an hour before and register their children’s names with the Program Manager. Whenever a participant registers, the Program Manager has to position the name of the person in a list in alphabet order. Write a program to help the Program Manager do this by placing the name in the right place each time the Program Manger enters a name. 2) the Event Manager has to send participants to the stage to perform in the order in which they registered. Write a program that will help the Event Manager know who to call to the stage to perform. The Logic should be in Data Structures
How can I invoke another program or command and trap its output?
Why should I use standard library functions instead of writing my own?
What are pointers in C? Give an example where to illustrate their significance.
Why is c faster?