17.2k views
1 vote
Assume you have thefollowing declaration int beta[50];.Which of the following is a valid elementof beta?

a.

beta[0]

c.

beta[‘1’]

b.

beta[‘0’]

d.

beta[50]

1 Answer

5 votes

Answer:

A - beta[0]

Step-by-step explanation:

Beta[0] is the first element of the array, therefore automatically it is a valid element of beta. B and C are disqualified because you would not use single quotations when referring to an element. D is disqualified because the element starts at 0 (beta[0]) and has 50 elements declared, therefore it would end at 49, with beta[49] being the last element.

User Roomana
by
8.0k points