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


Please Help Members By Posting Answers For Below Questions

What are header files and explain what are its uses in c programming?

612


Explain enumerated types in c language?

606


Define Array of pointers.

635


What is sorting in c plus plus?

565


Explain with the aid of an example why arrays of structures don’t provide an efficient representation when it comes to adding and deleting records internal to the array.

2655






How are 16- and 32-bit numbers stored?

725


What is difference between function overloading and operator overloading?

658


Explain c preprocessor?

683


how we can make 3d venturing graphics on outer interface

4011


What does %c do in c?

584


What is a volatile keyword in c?

638


Does c have class?

613


a formula,a series of steps,or well defined set of rules for solving a problem a) algorithem b) program c) erdiagram d) compiler

613


How to write a code for implementing my own printf() and scanf().... Please hep me in this... I need a guidance... Can you give an coding for c... Please also explain about the header files used other than #include...

4904


i want to switch my career from quailty assurance engineering to development kindly guide me from which programming language its better for me to start plz refer some courses or certifications too i have an experience of 1.5 yrs in QA field.Kindly guide me

1480