How to swap 3 numbers without using 4th variable?

Answer Posted / pallavi dhanopiya

a=a*b*c;
b=a/b/c;
c=a/b/c;
a=a/b/c;

Is This Answer Correct ?    12 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the size of array float a(10)?

645


What is the advantage of c?

604


In c programming, explain how do you insert quote characters (? And ?) Into the output screen?

754


What is strcmp in c?

588


how to solve "unable to open stdio.h and conio.h header files in windows 7 by using Dos-box software

2781






#define PRINT(int) printf("int = %d ",int) main() {< BR> intx,y,z; x=03;y=02;z=01; PRINT(x^x); z<<=3;PRINT(x); y>>=3;PRINT(y); }

705


Explain which of the following operators is incorrect and why? ( >=, <=, <>, ==)

598


Can i use “int” data type to store the value 32768? Why?

742


How do you redirect a standard stream?

614


What is structure and union in c?

584


When should the const modifier be used?

648


What does the c preprocessor do?

609


I just typed in this program, and it is acting strangely. Can you see anything wrong with it?

548


What is the purpose of void in c?

609


How can you convert integers to binary or hexadecimal?

604