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 |
biggest of two no's with out using if condition statement
What is null pointer in c?
What is #define size in c?
Is it possible to run a c program without using main?If yes HOW??
array of pointer pointer to array pointer to pointer
1)which of following operator can't be overloaded. a)== b)++ c)?! d)<=
Explain what is the difference between text files and binary files?
How can I remove the trailing spaces from a string?
Explain what is page thrashing?
What is floating point constants?
what will be the output of this program? void main() { int a[]={5,10,15}; int i=0,num; num=a[++i] + ++i +(++i); printf("%d",num); }
What are header files and explain what are its uses in c programming?