Debug the following program, so that the appropriate output…
Debug the following program, so that the appropriate output can be obtained.The current output is;A = 2 : B = 2The appropriate out is;A = 2 : B = 1// We want to swap ANY values stored in variables A and B.int A = 1,B = 2; // Not allowed to modify. A = B; B = A; cout
Read Details