how to swap two numbers with out using temp variable
Answer Posted / prasannaroy
a=10;
b=20;
b=a+b-(a=b);
| Is This Answer Correct ? | 8 Yes | 2 No |
Post New Answer View All Answers
Which operations are permitted on pointers?
How do you show the declaration of a virtual constructor?
You have two pairs: new() and delete() and another pair : alloc() and free(). Explain differences between eg. New() and malloc()
What is the full form of ios?
How do you save a c++ program?
What does the nocreate and noreplace flag ensure when they are used for opening a file?
Write about c++ storage classes?
Write a program in c++ to print the numbers from n to n2 except 5 and its multiples
What are the defining traits of an object-oriented language?
What are the rules about using an underscore in a c++ identifier?
Is swift a good first language?
How many types of comments are there in c++?
What is a dangling pointer in c++?
Keyword mean in declaration?
What does catch(…) mean?