1.

What is the output of this program?public class Output { public static void main(String args[]) { int p = 5; int q = 7; int r; int s; r = ++q; s = p++; r++; q++; ++p; System.out.println(p + " " + q + " " + r); } }

A. 6 7 7
B. 5 8 8
C. 7 9 9
D. 7 6 6
E. 8 7 7
Answer» D. 7 6 6


Discussion

No Comment Found

Related MCQs