How to swap values between two variables without using a
third variable?
Answer Posted / mona
swap(int var1,int var2)
{
var1=var1+var2;
var2=var1-var2;
var1=var1-var2;
}
thanks for asking.
| Is This Answer Correct ? | 45 Yes | 13 No |
Post New Answer View All Answers
what is difference between input parameter and output parameter.
what do u mean by tagging
Have you used callsymputx? what points need to be kept in mind when using it?
it is a language or tools?
Write a program to reverse a number?
Can we write a method in JSP.If so how?
What are the Short cut Keys of Tally ERP?
What is the difference between WebIntelligence and Designer in creating universes?
Difference between HTML and DHTML?
3 members in a pf.how we read 3 members without using ovrdbf.using rg pgms....
I am looking for NIC Sample papers or any patern of questions/ syllabus plz, send me on hamid.khan135@yahoo.in Regard
Hi All, Can any one please send me the difference between informatica 7i and 8i versions, Thanks in advance. vinod
we create a pf with 3 fields.2 is defined as keyfields.we lock it with alcobj command.how we find out whether the file is locked or not?is it dspfd??/
what is web configuration file
WS-NUM PIC S9(05)V(02) SIGN TRAILING SEPARATE MOVE '0050000+' TO WS-NUM The value stored is 00500,00+ MOVE '0050000-' TO WS-NUM Then what is the value will be stored in WS-NUM? Am getting '-00500,00'.....>>> What should I declare to WS-NUM so that I can get correct values for both + & - signs.