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
I have try to write a record in a TDQ from a fle.... what are the steps to do... can anybody plz come with a solution
what is client server & server? What r types of Joins? explsin it! which types of indexex in sql server? what is triggers?
why we use mantis? what u mean mantis in IT trends? addvantages of mantis?
What is web.configuration? how is it work? & wht is use this?
can we allocate memory for interface? if no then why?
Suppose we are doing 4 operations on database using service, first operation is successful but due to some reason remaining 3 operations are failed. I) is this transaction successful or not? ii) How can you give that error message to user?
it is a language or tools?
I m Abdullah Ansari compleated MCA from Jamia Hamdard,i have appeared the test of IBM on 2 august at oxford college of engineering Bangalore.waiting for hr round.. This is the first round for IBM.02/08/08 Paper consists of 4 sections 15 questions from matrices(time very less but no negative marking). 25 questions from series completion section (this section is very easy but negative marking) 15 questions from aptitude(little bit tough time limit 15 minute negative marking) 4th section is from computer science (c,c++,operating system,digital electronics ,basic question..) result came at 3 o'clock.i was selected... In interview they asked questions like 1 they asked about final yr project.. 2 what are dynamic and static memory location? 3 linked list and array difference between them. 4 what is function ? what is difference betwen function and inline function? 5 about structure 6 about binary tree, traversal, call by value. 7 storage class and many more basic questions..
design a counter with the following repeated binary sequence: 0, 1, 2, 3, 4, 5, 6, 7, 8 using JK Flip Flop.
How does the TCP handle the issue of multiplexing?
can we use commit,rollback in triggers and how?
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.
in IT trend mantis meant what? how to know mantis in IT trends? detail description about mantis?
Write a program to swap the content of two variables without using a third variable.
1.Mutating table