How To Swap 2 Numbers Without Temp Or 3Rd Variable Inwards Coffee - Interview Question
How to swap 2 numbers without using temp or 3rd variable is mutual interview interrogation non but on Java interviews but too on C in addition to C++ interviews. It is too a good programming questions for freshers . This interrogation was asked to me long dorsum in addition to didn't had whatever thought almost how to approach this interrogation without using temp or 3rd variable, may hold upwards lack of noesis on bitwise operators inwards Java or may hold upwards it didn't click at that time. Given or thence fourth dimension in addition to trial error, I eventually come upwards out amongst a solution amongst but arithmetics operator but interviewer was continue bespeak almost other approaches of swapping 2 variables without using temp or 3rd variable . Personally, I liked this interrogation in addition to included inwards listing o f my programming interview question bec ause of its simplicity in addition to or thence logical work, it forcefulness yous to do. When learned...