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
Why we use classes in oop?
What is object-oriented programming? Webopedia definition
What is abstract class in oop?
Why polymorphism is used in oops?
Which language is pure oop?
What is abstraction in oops with example?
What is the difference between encapsulation and polymorphism?
How do you define social class?
What is oops and its features?
Get me a number puzzle game-program
Can main method override?
What makes a language oop?
What polymorphism means?
#include
What do you mean by overloading?