how to swap two numbers with out using temp variable
Answer Posted / sachin patil
a = 5;
b = 10;
a = a+b;
b = a-b;
a = a-b;
Is This Answer Correct ? | 55 Yes | 5 No |
Post New Answer View All Answers
What is the basic concept of c++?
What is command line arguments in C++? What are its uses? Where we have to use this?
What are the uses of typedef in a program?
Do you know what are static and dynamic type checking?
What is private inheritance?
List the merits and demerits of declaring a nested class in C++?
Why is null pointer used?
Explain what are single and multiple inheritances in c++?
Explain the concept of friend function in c++?
What is #include c++?
In which header file does one find isalpha() a) conio.h b) stdio.h c) ctype.h
When should you use global variables?
Why do we need templates?
When the constructor of a base class calls a virtual function, why doesn't the override function of the derived class gets called?
Explain one-definition rule (odr).