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 |
is there any choice in opting subjects like 4 out of 7
what is the difference between class and object?
What is conditional Compilation?
What is encapsulation with example?
Whats is abstraction in oops?
what is oops
Write 7 differences between "Public" function and "Private" function?
What is polymorphism give a real life example?
what is static?
What is multiple inheritance ?
17 Answers Blue Star, C DAC, CDAC, Impetus, Ness Technologies, Softvision Solution,
how do u initialize the constant variables
What does and I oop mean?