how to swap all the values without using temporary variable.
tha values r a = 20, x=60 and p=2.
Answer Posted / gurusaran
x=x*a; (x=1200)
a=x/a; (a=60)
x=x/a; (x=20)
p=p*x; (p=40)
x=p/x; (x=2)
p=p/x; (p=20)
Hence final values are a=60,x=2,p=20
Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
hi This is radhika.Can anyone help me to know the question papers of NATIONAL INFORMATICS CENTRE for the post of scientific officer/engineer? if anyone know plz tell me question paper pattern
what do u mean by tagging
Write a program that prints the numbers from 1 to 100. But for multiples of three print "Fit" instead of the number and for the multiples of five print "Bit". For numbers which are multiples of both three and five print "FitBit".
Plz sent me in .net 2.0 interview Question & answers?
Where do we need Operator overloading?
Differevce between arrays and array builders?
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
How to use string functions in QTP?give some examples
how can we implement locks in plsql?
Tag for turning an image into a hyperlink is
can we extend a class having only one parameterised constructor.Suggest the process to do it.
design a counter with the following repeated binary sequence: 0, 1, 2, 3, 4, 5, 6, 7, 8 using JK Flip Flop.
what are all the validation we need to perform in data stage?
What binary value will be internally stored for NULL for the type S9(1) COMP 3 in mainframe
Mainly Related to Oracle, DBMS , Oracle Stored Procedures, Functions, Oracle 9i Architecture, Redo logs..., Views,