(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).
// Pointers as Arguments to a Function
#include <iostream>
void swap(int i, int* j)
{
int temp;
temp = i;
i = *j;
*j = temp;
}
int main()
{
int a = 10;
int b = 20;
swap(a, &b);
std::cout << a << '\t' << b << std::endl;
return 0;
}