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

Calculate the weighted average of a list of n numbers using the formula xavg = f1x1+f2x2+ ….+ fnxn where the f’s are fractional weighting factors, i.e., 0<=fi<1, and f1+f2+….+fn = 1

3651


Explain how can I remove the trailing spaces from a string?

621


Is using exit() the same as using return?

670


What is return in c programming?

507


What does main () mean in c?

610






What is the stack in c?

714


What does %c mean in c?

643


Can you explain what keyboard debouncing is, and where and why we us it? please give some examples

1651


what is the c source code for the below output? 10 10 10 10 10 10 10 10 10 10 9 9 7 6 6 6 6 6 6 9 7 5 9 7 3 2 2 5 9 7 3 1 5 9 7 3 5 9 7 4 4 4 4 5 9 7 8 8 8 8 8 8 8 8 9

1426


In C, What is the #line used for?

1047


How many header files are in c?

547


Explain about the functions strcat() and strcmp()?

596


What is scanf () in c?

657


What is pass by reference in functions?

320


What is the auto keyword good for?

616