Hello all, I'm working on a calculator program for complex numbers, and all my functions are working properly with the exception of my swap function.
The idea is too swap the value of the "answer" with the value of "A" but for some reason my "ans1,ans2,ans3, ans4" variables keep defaulting to zero resulting in the swap values being wrong despite having values obtained. Here's a snippet of the code showing the working division function and the broken swap function, any help would be appreciated.