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 |
Difference between new operator and operator new
why reinterpret cast is considered dangerous?
how to get the oracle certification? send me the answer
Why is polymorphism used?
Why do we use oops?
Can anyone please explain runtime polymorphism with a real time example??at what ciscumstances we go for it??
What is the concept of object oriented program?
diff between Abstract class Interfaces?
explain sub-type and sub class? atleast u have differ it into 4 points?
Out of 4 concepts, which 3 C++ Follow?
write a progra in c++ using class & object to find out wheather a given no. is prim or not.
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,