how to swap two integers 1 and 32767 without using third
variable
Answer Posted / usama
take two var a , b
a=a+b;
b=a-b;
a=a-b;
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
What is the difference between mpi and openmp?
What type is sizeof?
What are multibyte characters?
Some coders debug their programs by placing comment symbols on some codes instead of deleting it. How does this aid in debugging?
1. Write a function to display the sum of two numbers in the following ways: By using (i) pass by value (ii) pass by address a. function with argument and with return value b. function with argument and without return value c. without argument , with return value d. without argument , without return value Note: Use pass by address.
What is #include stdio h?
What are conditional operators in C?
Which one to choose from 'initialization lists' or 'assignment', for the use in the constructor?
Which is more efficient, a switch statement or an if else chain?
What is fflush() function?
Explain how can I remove the trailing spaces from a string?
What is the difference between functions abs() and fabs()?
What is the scope of static variable in c?
Why is structure padding done in c?
Write a program to display all the prime nos from 1 to 1000000, your code should not take time more than a minute to display all the nos.