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 |
Program to check whether a word is in all capital letters
some one give d clear explanation for polymorphism
Can a varargs method be overloaded?
What is polymorphism ? Explain with examples
What is abstraction in oops with example?
What is abstraction with example?
write a program to find 2 power of a 5digit number with out using big int and exponent ?
write a c++ code to overload + and - for a stack class such that + provides push and - provides pop operation
1 Answers College School Exams Tests, HCL, IBM, TCS,
What is class in oop with example?
Explain the concept of abstracion and encapsulation with one example. What is the difference between them?
What is encapsulation process?
Round up a Decimal number in c++.. example Note = 3.5 is as 4 3.3 is as 3
3 Answers Accenture, Cognizant, IBM,