swap two integer variables without using a third temporary
variable?
Answer Posted / sumit salve
a=a+b-(b=a);
or
a=a*b/(b=a);
this will also swap two numbers!!!
Thank You...
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is return type in c?
What is the difference between local variable and global variable in c?
a program that can input number of records and can view it again the record
What does %p mean?
in linking some of os executables are linking name some of them
What is the concatenation operator?
Explain is it better to bitshift a value than to multiply by 2?
What is meant by 'bit masking'?
What is difference between structure and union?
What is mean by data types in c?
What are global variables and explain how do you declare them?
Explain how can I make sure that my program is the only one accessing a file?
Find the second largest element in an array with minimum no of comparisons and give the minimum no of comparisons needed on an array of size N to do the same.
What is the use of linkage in c language?
What will be your course of action for a push operation?