How to swap 3 numbers without using 4th variable?
Answers were Sorted based on User's Feedback
Answer / ilana
The target is a<-b b<-c c<- a
------------------------------------
a = a+b+c ; // a+b+c b c
c = c+b; // a+b+c b b+c
b = c-b; // a+b+c c b+c
c = a-c; // a+b+c c a
a = a-(b+c) // b c a
| Is This Answer Correct ? | 12 Yes | 7 No |
WHAT IS ABSTRACT DATA TYPE
please give me a VIRTUSA sample palcement papers.... you will only send TECHNICAL SECTION..... that is help for me Advance Thanks........................
What is calloc in c?
Program to find the sum of digits of a given number until the sum becomes a single digit. (e.g. 12345=>1+2+3+4+5=15=>1+5=6)
How to compare array with pointer in c?
What kind of structure is a house?
do u print this format '(((())))'. This brackets is based on user input like 4 or 5 or 6,without using any loop's?
What do you understand by friend-functions? How are they used?
Tell me what are bitwise shift operators?
Can you explain what keyboard debouncing is, and where and why we us it? please give some examples
what is an ERP?
what is the difference between these initializations? Char a[]=”string”; Char *p=”literal”; Does *p++ increment p, or what it points to?