Hi All,
I am new to programming and want to know how can i write a
code to take input of 2 numbers from user and swap it
without using a temp variable?
Answer Posted / x
a=a+b;
b=a-b;
a=a-b;
| Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
What are the 5 oop principles?
Why can't we have instance(stack) of a class as a member of the same class like eg.Class A{A obj;} as we can have self refential pointer
Is abstract thinking intelligence?
What is the renewal class?
What is class and object in oops?
write a program to enter a string like"sunil is a good boy and seeking for a job" not more than 10 characters including space in one line,rest characters should b in other line.if the next line starts from in between the previous word,then print whole word to next line.
What is a function in oop?
What are the components of marker interface?
Can bst contain duplicates?
What is difference between inheritance and polymorphism?
What is object and example?
What is the diamond problem in inheritance?
What is the point of polymorphism?
Write a c++ program to display pass and fail for three student using static member function
Is data hiding and abstraction same?