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 oops
what is object oriented programming and procedure oriented programming?
Base class has two public data members. How can i derive a new class with one datamember as public and another data member as private?.
What are the data types in oop?
What are objects in oop?
When a private constructer is being inherited from one class to another class and when the object is instantiated is the space reserved for this private variable in the memory??
Child cObj = new Parent() Wahts the output ?
What are the three parts of a simple empty class?
Tell us about yourself.
47 Answers ABB, Amazon, Fidelity, Flextronics, Franklin Templeton, HCL, Hexaware, IBM, Impetus, Infosys, Reliance, Rofous, Silgate, Sutherland, TCS, Thomson Reuters, Virtusa, Wipro,
Difference between over loading and over ridding?
12 Answers CTS, Patni, Softvision Solution,
what is SPL in c++.
Can a varargs method be overloaded?