WRITE A SIMPLE C++ PROGRAM TO SWAP TWO NOS WITHOUT USING TEMP
Answers were Sorted based on User's Feedback
Answer / 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 |
What is abstraction?
What are two types of polymorphism?
Which is the only operator in C++ which can be overloaded but NOT inherited?
Which language is not a true object oriented programming language?
OOP'S advantages of inheritance include:
What is the use of fflush(stdin) in c++?
What is property in oops?
Is this job good for future? can do this job post grduate student?
IS IT NECESSARY TO INITIALIZE VARIABLE? WHAT IF THE INSTANCE VARIABLE IS DECLARED final ? IS IT NECESSARY TO INITIALIZE THE final VARIABLE AT THE TIME OF THEIR DECLARATION?
What is multiple inheritance? Give Example
3. Differentiate verification and validation.
what is polymorpsim? what are its types?