(10%) Determine whether the following code is correct or not. If it is
correct, predict its output. If it is incorrect, point out the
mistake(s).
// Pass-by-Pointer
#include <iostream>
void swap(int &i, int &j)
{
int temp;
temp = i;
i = j;
j = temp;
return;
}
int main()
{
int a = 4;
int b = 8;
std::cout << a << b << std::endl;
swap(&a, &b);
std::cout << a << b << std::endl;
return 0;
}