What is the output of the following program?
#include
void swap(int m, int n)
{
int x = m;
m = n;
n = x;
}
main()
{
int x=5, y=3;
swap(x,y);
printf("%d %d", x, y);
}
Answer: B
5 3, call by value mechanism can’t alter actual arguments.