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
hii I inntrested abt scjp certification but i dont knw abt scjp plz send details abt scjp exam and syllabus.
why we use mantis? what u mean mantis in IT trends? addvantages of mantis?
where is available in this mantis toturials?
I am work in it aompenei
Is anyone has done the ASP.NET MVC4 workshop course(2 days) from Peers Technologies. Let me know. I need to talk before joining ASP.NET MVC4 training at peers, Hyderabad.
what is the use MDM(Master Data Management)and meaning
what is the certificates in biztalk?
why we need to take u?
is it acceptable if we declare multiple exceptions in same overridden method.
how many types of operating system are avaliable?
Give examples of macro quoting function?
in a VB application, where the data will be stored after manipulation? what is the syntax for that?
Find out the roles which gives access to all tables in SAP? Thanks in advance.
Tips for blog integration by www.esteemwebsolutions.com. Can Any body suggest me to how to make wonderful questions on web integration..
Write a program to reverse a number?