+ 1
I wnt one help....swapping two numbers without using third variable for jsp
please help me...
4 Respuestas
+ 15
I would not use it as it is not readable, but still it should work:
x = x ^ y ^ (y = x);
+ 6
a = a + b
b = a - b
a = a - b
do tgat make sense?
let me check.
a = 5 and b=6
a = 11
b = 5
a = 6
+ 1
thanku fr all...nikolay sir thanku.
x = x ^ y ^ (y = x); its new type of swapping...its wrk it...