how to swap the variables without using temp and operators
Answer / santhosh
int a, b;
a = 10;
b = 20;
a = a + b;
//a=30
b = a - b;
a = a - b;
Console.WriteLine("a={0},b={1}", a, b);
Console.ReadLine();
| Is This Answer Correct ? | 10 Yes | 2 No |
What is difference between oop and pop?
Why many objects can working together? How objects working togetherM I want to see example code.
Does c++ support multilevel and multiple inheritance?
what are the ways in which a constructors can be called?
#include <iostream> using namespace std; int main() { int a = 3; int c[5][5]; for (int x=0;x<5;x++) { for (int y=0;y<5;y++) { c[x][y] = x*y; } } cout << c[a][2]; }
WHAT IS ABSTRUCT DATA TYPE ? PLEASE EXPLAIN IT.
why function overloading is not called as pure polymorphism?
Program to print 0 to 9 in cross order
assume the program must insert 4 elements from the key board and then do the following programs.sequential search(search one of the elements),using insertion sort(sort the element) and using selection sort(sort the element).
Finding of the 4 larger (bigger) numbers from the list like{1245,4587,2145,1163,29987,65783.....}
how to find no of instances of an object in .NET?
Why interface is used?