how to swap two numbers with out using temp variable
Answer Posted / pranav
//swaping of 2 numbers without using temp variable
//a=5 & b=6
a=a+b; //a=30
b=a-b; //b=5
a=a-b; //a=6
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Snake Game: This is normal snake game which you can find in most of the mobiles. You can develop it in Java, C/C++, C# or what ever language you know.
Explain the volatile and mutable keywords.
What are the various situations where a copy constructor is invoked?
Which bit wise operator is suitable for putting on a particular bit in a number?
what is pre-processor in C++?
C is to C++ as 1 is to a) What the heck b) 2 c) 10
Name four predefined macros.
Write a function to find the nth item from the end of a linked list in a single pass.
What are activex and ole?
How is c++ different from java?
Explain one-definition rule (odr).
Is c better than c++?
What is an adaptor class or wrapper class in c++?
What is implicit pointer in c++?
What is a dynamic binding in c++?