InfinityLabs R&D interview question

Write a function that switches between two values in memory.

Interview Answer

Anonymous

20 July 2021

In the SIMPLE language variables are passed by value and arrays are passed by reference, so you can simply insert an array into the function and replace the values in it