How to swap values between two variables without using a
third variable?
Answer Posted / padma
Need more information related to,
1. the values and type of variables before doing a swap, in
order to do the efficient memory management and code
robustness.
2.the reason to swap without using third variable.
3.code efficiency increased due to the two variable alone.
4.pre and post conditions for swap
5.the programming laguage to be used to do swap.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Can any one give an example (Source Code) on virtual function implemetation in Java?
what is the difference between rename and label
what are the topics choosen for jam round for interviews
EXPLAIN UNARY OPEARATORS
SAS question: I have 50 fils a1,a2,...,a50. the primary key is upc. then if i want to merge all 50 files, the code is as follows, data test; merge a1 ... a50; by upc; run; we know that writing all 50 files name is time consuming, is there any standard format of this code?
can we allocate memory for interface? if no then why?
Is there any standard procedure to test the application as a whole? Or How can I test complete application right from the requirement gathering?
1. Consider the following code in our example assembly language: ; an example bit of assembly code ROOT: W FATHER FATHER: W SON1 W SON2 SON1: W NIL W NIL ; ---------------------- SON2: W GRANDSON W NIL GRANDSON: W NIL W NIL NIL = 0 Assemble this code carefully following the two pass model, and show the symbol table at the point marked by the dashed line during each pass.
Write a shell program to test whether a given year is leap year or not ?
What is the merger sort principle and its time complexity.
How can we develop a multi-tier application in Java?
what is dot net framework
Hi can you please send me recent(present) interview questions and technical qyestions with answers for "BUSSIESS OBJECTS" and "DATA WAREHOUSE".pls its urgent for me my mail id is sekhar.cs82@gmail.com,manjuforgis@gmail.com. thanks in advance
why we need to take u?
public static void main(String args[]) describe it