The output of the given pseudo code would be 14. The following steps explain how this value was calculated:
Initially, the values of p, q, and r are set to 7, 3, and 4 respectively.
In the first if statement, the expression (r + p) is compared with (p - r). Since (r + p) = 11 and (p - r) = 3, (r + p) > (p - r) is true, so the code inside the if statement is executed.
The code inside the first if statement sets p to (p + 8) + p, which becomes (7 + 8) + 7 = 22.
The second if statement checks if the expression r & r is not equal to zero. Since r = 4 and 4 & 4 = 4, which is not equal to zero, the code inside the if statement is not executed.
Instead, the code inside the else statement sets p to q + r, which becomes 3 + 4 = 7.
Finally, the code prints the sum of p, q, and r, which is p + q + r = 7 + 3 + 4 = 14.
So, the output of the code would be 14.