How to swap values between two variables without using a
third variable?
Answer Posted / kumar
//language using C#
int a=10;
int b=20;
a=a+b;
b=a-b;
a=a-b;
thanks
Kumar
http://www.sourcecodehub.com/php/how-to-swap-values-of-two-variables-without-using-a-third-variable-integer/
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
It is possible to take number of controls added to form at run-time.ex-when user enter 6, 6 text boxes get added to form,next time number of controls get change as per user number enter. What is code for that?
iam confused among testing ,.net and java. can anybody help me.
what are all the validation we need to perform in data stage?
how do you generate source code for the automatic generation for receipt number
when we use mantis? how learn mantis?
Hai, My name is nisha.I have NIC exam.If anybody Knows NIC previous paper pattern pls send me to nishanairp@gmail.com
Q1.Write a C program which asks the user for a number between 1 to 9 and shows the number. If the user inputs a number out of the specified range, the program should show an error and prompt the user for a valid input.
what is the current salary package in India for a lamp programmer
5. Which of the following can you do with DB2 Express- C? Query databases with SQL Query databases with XML using XQuery and XPath Use SQL in Xquery and Xquery in SQL All of the above
write a query that returns one row for each department and the number of employees in that department. Given two tables EMPLOYEE and DEPARTMENT, where there can be multiple employees per department.
how to convert infix expression to prefix expression?
How can we develop a multi-tier application in Java?
Write a program to reverse a number?
Given n red balls and m blue balls and some containers, how would you distribute those balls among the containers such that the probability of picking a red ball is maximized, assuming that the user randomly chooses a container and then randomly picks a ball from that.
if 2 is passed as an argument to the method,void GC.Collect then what would be the result?