q how can define an arrayan array is defined in


Q: How can Define an Array?

An Array is defined in much the alike manner as ordinary variables except that every array name must be accompanied by a size specification (that is, the number of elements). For a one-dimensional array the size is précised by a positive integer expression enclosed in square brackets. The expression is typically written as a positive integer constant.

In common terms a one-dimensional array definition may be expressed as

storage-class data - type array - name [expression];

Where storage-class refers to the storage class of the array, array - name is the array name, data-type is the data type, and expression is a positive valued expression which indicates the number of array elements. The storage - class is optional.

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: q how can define an arrayan array is defined in
Reference No:- TGS0305067

Expected delivery within 24 Hours