how to swap two numbers with out using temp variable
Answer Posted / prasannaroy
a=10;
b=20;
b=a+b-(a=b);
| Is This Answer Correct ? | 8 Yes | 2 No |
Post New Answer View All Answers
What is virtual methods?
What jobs can you get with a c++ certification?
What are the uses of pointers?
What is copy constructor? Can we make copy constructor private in c++?
What is a static member?
How the memory management in vectors are being done. What happens when the heap memory is full, and how do you handle it ?
Explain the isa and hasa class relationships.
Is c++ vector dynamic?
What are the basics of local (auto) objects?
Assume an array of structure is in order by studentID field of the record, where student IDs go from 101 to 500. Write the most efficient pseudocode algorithm you can to find the record with a specific studentID if every single student ID from 101 to 500 is used and the array has 400 elements. Write the most efficient pseudocode algorithm you can to find a record with a studentID near the end of the IDs, say in the range from 450 to 500, if not every single student ID in the range of 101 to 500 is used and the array size is only 300
Write about a nested class and mention its use?
What is searching? Explain linear and binary search.
What are the benefits of c++?
Which is the best c++ compiler?
Explain function overloading