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 design patterns in C++?
What is virtual function?where and when is it used?
What is multiple inheritance ?
17 Answers Blue Star, C DAC, CDAC, Impetus, Ness Technologies, Softvision Solution,
What is the diamond problem in inheritance?
Program to print 0 to 9 in cross order
Can we define a class within the interface?
Prepare me a program for the animation of train
What is use of overloading?
which is platform independent device used in computers
Explain the concepts involved in Object Oriented programming.
What is the difference between declaration and definition?
Name an advantage of linked list over array?