Pergunta de entrevista da empresa Apisero

How will you swap two variables without using a third variable??

Respostas da entrevista

Sigiloso

13 de mai. de 2021

HR questions please tell . And ctc ordered

Sigiloso

8 de abr. de 2021

I said I know two ways to swap variables without using third. first, by bit manipulation, we can swap any type of variable, and second, if the variables are of integer type then we have to do some math. He said the Integer type will be fine, So I answered accordingly.

1