wat are the two methods for swapping two numbers without
using temp variable??
Answer Posted / shrikantauti
i dont know the methods but can give the code to swap values without temporary variable.
a b
a=a+b
b=a-b
a=a-b
| Is This Answer Correct ? | 6 Yes | 0 No |
Post New Answer View All Answers
What does %c mean in c?
what is stack , heap ,code segment,and data segment
What is the difference between near, far and huge pointers?
while initialization of array why we use a[][2] why not a[2][]...?
Explain what is the benefit of using const for declaring constants?
A function can make the value of a variable available to another by a) declaring the variable as global variable b) Passing the variable as a parameter to the second function c) Either of the two methods in (A) and (B) d) binary stream
When is a void pointer used?
What is the right type to use for boolean values in c?
Where does the name "C" come from, anyway?
formula to convert 2500mmh2o into m3/hr
What is difference between union and structure in c?
How do I get a null pointer in my programs?
If I have a char * variable pointing to the name of a function ..
i = 25;switch (i) {case 25: printf("The value is 25 ");case 30: printf("The value is 30 "); When the above statements are executed the output will be : a) The value is 25 b) The value is 30 c) The value is 25 The value is 30 d) none
Is that possible to add pointers to each other?