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
What are different oops concepts?
Explain the concepts involved in Object Oriented programming.
How do you answer polymorphism?
#include
What is oops concept with example?
Write a c++ program to display pass and fail for three student using static member function
Where You Can Use Interface in your Project
What is polymorphism in oops with example?
Why do we use class?
What is the real time example of inheritance?
What are different types of JVM's? for example we use dalvik jvm for android then what about the remaining operating systems?
What is the difference between encapsulation and polymorphism?
what are the different types of qualifier in java?
What is polymorphism explain its types?
Which language is not a true object oriented programming language?