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 / maddy :)
#include <stdio.h>
#include <conio.h>
void main()
{
int x=1,y=2,z=3,s=0;
s=x,x=y,y=z,z=s;
printf("The value of x=%d,y=%d,z=%d",x,y,z);
}
| Is This Answer Correct ? | 7 Yes | 3 No |
Post New Answer View All Answers
Explain the difference between call by value and call by reference in c language?
How to establish connection with oracle database software from c language?
write an algorithm to display a square matrix.
Explain what is the difference between #include and #include 'file' ?
Write a program, where i have a grid with many cells, how many paths are possible from one point to other desired points.
What is the difference between arrays and pointers?
What does the format %10.2 mean when included in a printf statement?
What is typeof in c?
Write a client and server program in C language using UDP, where client program interact with the Server as given below: i) The client begins by sending a request to send a string of 8 characters or series of 7 numbers, the server sends back a characters or numbers as per the request of the client. ii) In case of series of 7 numbers: The client sends a multiplication of numbers, to the server. iii) In case of a string of 8 characters: The client sends a reverse order of string to the server.. iv) Server will send an acknowledgment to the client after receiving the correct answer
Write a code to determine the total number of stops an elevator would take to serve N number of people.
FORMATTED INPUT/OUTPUT functions are a) scanf() and printf() b) gets() and puts() c) getchar() and putchar() d) all the above
What is memcpy() function?
What is scope rule in c?
What is assignment operator?
What is the mean of function?