adplus-dvertising
frame-decoration

Question

If an array of objects is of size 10 and a data value have to be retrieved from 5th object then ________________ syntax should be used.

a.

Array_Name[4].data_variable_name;

b.

Data_Type Array_Name[4].data_variable_name;

c.

Array_Name[4].data_variable_name.value;

d.

Array_Name[4].data_variable_name(value);

Answer: (a).Array_Name[4].data_variable_name;

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. If an array of objects is of size 10 and a data value have to be retrieved from 5th object then ________________ syntax should be used.