Home / Questions / If int x[] = { 4, 3, 7, 8, 9, 10}; what are the values of p and q ? p = x.length q = x[2] + x[5] * x[1]
Explanatory Question

If int x[] = { 4, 3, 7, 8, 9, 10}; what are the values of p and q ?

  1. p = x.length
  2. q = x[2] + x[5] * x[1]

👁 87 Views
📘 Detailed Answer
🕒 Easy to Read
Read the answer carefully and go through the related questions on the right side to improve your understanding of this topic.

Answer with Explanation

  1. 6
  2. q = x[2] + x[5] * x[1]
    q = 7 + 10 * 3
    q = 7 + 30
    q = 37