swap two integer variables without using a third temporary
variable?
Answer Posted / vignesh1988i
the best way what i choose is that : if x=89 , y=-88
x^=y^=x^=y;
this line will swap the above numbers......
thank u
Is This Answer Correct ? | 10 Yes | 5 No |
Post New Answer View All Answers
What is a char c?
Difference between exit() and _exit() function?
What is function definition in c?
What is operator promotion?
What is the difference between malloc() and calloc()?
Explain how can a program be made to print the name of a source file where an error occurs?
What is quick sort in c?
List some basic data types in c?
Discuss the function of conditional operator, size of operator and comma operator with examples.
What is an lvalue in c?
What is pre-emptive data structure and explain it with example?
How can I find out the size of a file, prior to reading it in?
Why & is used in c?
Are there constructors in c?
What is clrscr in c?