how to swap all the values without using temporary variable.
tha values r a = 20, x=60 and p=2.
Answer Posted / padmas
To swap the values without using temporary variable
for a,x and p,
Do a call to swap function for a and p and
another call to same swap function for x and p.
call1:swap(a,p);
call2:swap(x,p);
swap(variable1,variable2)
{no temporary variable}
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
Hai, My name is nisha.I have NIC exam.If anybody Knows NIC previous paper pattern pls send me to nishanairp@gmail.com
What are the Short cut Keys of Tally ERP?
how can we implement locks in plsql?
can we retrieve only integer/String type columns from a table,if yes how?
Hello...has anyone interviewed with Information Management Services(IMS)located in Silver Spring MD??If yes,what can you share about the programming test and the analytical test?
Please forward important interview and basic questions in VB6 on my email id: usneha_16@yahoo.co.in
Tag for turning an image into a hyperlink is
i am exeprienced person what is selection process
Is there any standard procedure to test the application as a whole? Or How can I test complete application right from the requirement gathering?
Hi All, Can any one please send me the difference between informatica 7i and 8i versions, Thanks in advance. vinod
what is meant by life cycle of a business
19. Given a system that is described with the following equation, X=A+(B.(A̅+C)+C)+A.B.(D̅+E̅) a) Simplify the equation using Boolean Algebra. b) Implement the original and then the simplified equation with a digital circuit. c) Implement the original and then the simplified equation in ladder logic.
which worker is involved in all the phases of SDLC?
how to stop execution of step 3 in a job mainframe
Which method protects back button to retrieve old value from previous page in Struts.