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 |
Given two strings like x=?hello? and y=?open?, remove any character from string x which is also used in string y, thus making the result x=?hll?.
what is a class
char* ptr = "Rahul"; *ptr++; printf("%s",ptr); What will be the output
what is cast operator?
Iam doing my project on instant messaging , if you any new ideas regarding this project ,please suggest it?
What does it mean when someone says I oop?
What is and I oop mean?
can inline function declare in private part of class?
Why is destructor used?
how much classes are used in c++
Can we have a private virtual method ?
design class for linked list and include constructor,destructor,insert option. node of form struct node { int data; struct node &ptr; }