how to swap two numbers with out using temp variable
Answer Posted / arundhati
a^=b^=a^=b;
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How would you use the functions sin(), pow(), sqrt()?
Write a program for Divide a number with 2 and Print the output ( NOTE: Check for divide by zero error).
Write a corrected statement in c++ so that the statement will work properly. if (4 < x < 11) y=2*x;
Can we declare a base-class destructor as virtual?
Am studying basic c++ programming, have been given the following assignment. Design a linear program to calculate the maximum stress a material can withstand given a force and a diameter of a circle. To find the required area pi should be defined. Have most of the program sorted out but am at a loss as to how to show the calculations required. Can anyone help?
Can you sort a set c++?
Is java a c++?
What is class invariant in c++?
How does c++ structure differ from c++ class?
Can we use clrscr in c++?
What are libraries in c++?
Do vectors start at 0?
What are the c++ access specifiers?
Can a constructor return a value?
What is doubly linked list in c++?