1. A. Output value = 40
B. output value = 0
2. In the first case (A) the argument x is passed by reference method. So the changes made in the function reflects in main().
In the second case (B) the argument x is passed by value method. So the changes made in the function will not reflect in main().