Swap min val with max in array - Printable Version +- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums) +-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP) +--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners) +--- Thread: Swap min val with max in array (/Thread-Swap-min-val-with-max-in-array) |
Swap min val with max in array - Azharqurahi - 07-23-2014 Hi all, I want to swap the min value with max value without changing the array element. Array(10,5,20,35,15) Thanks in advance RE: Swap min val with max in array - Ankur - 07-23-2014 Code: sort = Array(10,5,20,35,15) RE: Swap min val with max in array - Azharqurahi - 07-24-2014 Tahnks a lot Ankur......... This question ask me a interviewer. I have taken min and max value but don't know how to swap. Thanks Again.... Doing grate job Dear |