Answer:
The answer is "Option C".
Step-by-step explanation:
In the given method prototype a method "exchange" is declared, which accepts two integer parameters, that is "p and q", and this method can't return any value because its return type is void. In the method definition time is defined, that both variables is a pointer type, that's choices c is correct and others were wrong, that can be described as follows:
- Option A and Option B both are wrong because it can't interchange the value.
- Option D and Option E both option uses an integer pointer variable "temp", which is not defined in the question, that's why it is incorrect.