WRITE A SIMPLE C++ PROGRAM TO SWAP TWO NOS WITHOUT USING TEMP
Answer Posted / vinodhini r
main()
{
int a,b;
scanf("%d %d",&a,&b);
a=a+b;
b=a-b;
a=a-b;
printf("%d %d",a,b);
}
| Is This Answer Correct ? | 26 Yes | 2 No |
Post New Answer View All Answers
Write A Program to find the ambiguities in Multiple Inheritance? How are they resolved.(Virtual Functions)
What is difference between polymorphism and inheritance?
Why is object oriented programming so hard?
#include
What is byval and byref? What are differences between them?
Can destructor be overloaded?
Why do we use polymorphism?
What is polymorphism what is it for and how is it used?
Why is abstraction used?
What is constructor in oop?
What is coupling in oop?
Can a destructor be called directly?
What is class in oop with example?
Explain virtual inheritance?
What is Difference Between Inheritance and creating object and getting data? means Class A extends B{ B.getMethod();} (OR) Class A{ b obj=new B(); obj.getMethod(); }