how do you access the values within an array-


How do you access the values within an array?

- Arrays comprise a number of elements, which depends on the size you assigned it during variable declaration.

- Every element is assigned a number from 0 to number of elements-1.

- To assign or retrieve value of a particular element, refer to the element number. For instance: if you have a declaration that says "int marks[6];", then you have 6 accessible elements, namely: marks[0], marks[1], marks[2], marks[3], marks[4] and marks[5].

 

 

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: how do you access the values within an array-
Reference No:- TGS0355064

Expected delivery within 24 Hours