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 is variable example?
INSTANCE FIELDS DECLARED private ARE ACCESSIBLE BY THE METHODS ONLY.CAN WE CHANGE THE private FIELD OF AN OBJECT IN A METHOD OF SOME OTHER OBJECT OF THE SAME CLASS?
write a program using c++ to implement single contiguous memory mangement techniques.display the content of the main memory after yhe allocation of jobs and percentage of the wastage of the main memory
What does and I oop mean in text?
What is the significance of classes in oop?
What is difference between multiple inheritance and multilevel inheritance?
What is an advantage of polymorphism?
What is abstraction and encapsulation?
How do you define social class?
Why multiple inheritance is not possible?
Can we define a class within the interface?
What is purpose of inheritance?
What is difference between inheritance and polymorphism?
What is stream in oop?
write a programe to calculate the simple intrest and compund intrest using by function overlading