write a program to swap Two numbers without using temp variable.
Answer Posted / rohan
four Types with single statements:
1.b=(a+b)-(a=b);
2.a^=b^=a^=b;
3.a=a+b;
b=a-b;
a=a-b;
4.a=a*b;
b=a/b;
a=a/b;
rohanraju143@gmail.com from NIT Waramgal
| Is This Answer Correct ? | 18 Yes | 7 No |
Post New Answer View All Answers
What does p mean in physics?
Explain what could possibly be the problem if a valid function name such as tolower() is being reported by the c compiler as undefined?
Explain bit masking in c?
Why static is used in c?
An arrangement of information in memory in such a way that it can be easily accessed and processed by a programming language a) string b) data structure c) pointers d) array
What is New modifiers?
Who is the main contributor in designing the c language after dennis ritchie?
What is C language ?
program to find error in linklist.(i.e find whether any node point wrongly to previous nodes instead of next node)
write a program to convert a expression in polish notation(postfix) to inline(normal) something like make 723+* (2+3) x 7 (not sure) just check out its mainly printing expression in postfix form to infix.
difference between Low, Middle, High Level languages in c ?
How does pointer work in c?
What is the use of extern in c?
How can you determine the size of an allocated portion of memory?
What are bitwise shift operators in c programming?