A

Admin • 802.91K Points
Coach

Q. What will be the output of the following Java program?

Code:
class increment
{
public static void main(String args[])
{
int g = 3;
System.out.print(++g * 8);
}
}
  • (A) 25
  • (B) 24
  • (C) 32
  • (D) 33
  • Correct Answer - Option(C)
  • Views: 6
  • Filed under category Java
  • Hashtags:

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.