A

Admin • 832.70K Points
Coach

Q. Given the following code fragment:~~~int A[];int i = 0;A = new int A[4];~~~while (i < 4)~~~{~~~A[i] = 10;~~~i = i + 1;~~~}~~~What is the value of A[3]?.

  • (A) 0.
  • (B) 3.
  • (C) 10.
  • (D) 9.
  • Correct Answer - Option(C)
  • Views: 29
  • 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.