What are the characteristics of arrays in C? 

1) An array holds elements that have the same data type         2) Array elements are stored in subsequent memory locations3) Two-dimentional array elements are stored row by row in subsequent memory locations.4) Array name represents the address of the starting element5) Array size should be mentioned in the declaration. Array size must be a constant expression and not a variable.

Showing Answers 1 - 11 of 11 Answers

Basavaraj Yadwad

  • May 24th, 2006
 

Array: can be defined as a group of elements stored in contigous memory locations and all elements hold the data of same data type. All elements share a common name - array name.

Example: int array[10]; declares that it is an array of 10 elements sharing common name as array.

We normally access first element as array[0] and last as array[9].

For learning more -

Visit : http://www.stanford.edu/class/cs107/handouts/08-Arrays-The-Full-Story.pdf 

  Was this answer useful?  Yes

vraj pandya

  • Nov 23rd, 2016
 

1) Array have number of memory cell which is called elements,each memory cell size occupy byte which is depending on type of Array.
2) Every element has assign a unique number which is called address of particular element. 3) Element number is assign by name of array & index number.Always array start with 0 index number & end with one less than size of array.
4) All the elements of array share the common name,and they are distinguished from one another with help of the element number.
5) The amount of memory occupied by array is depending on data type & number of element of array.
6) The array element are always stored sequential or in linear fashion.
7) In array, lower bound can not be change but the upper bound may be expanded or changed.
8) In array, Insertion & deletion operation is slower & time consuming but searching & sorting operation is faster.
9) When an array is declared & not initialized, it contain garbage values. If array is declared as static, all elements are initialized to zero.

  Was this answer useful?  Yes

sai chaitanya

  • Oct 12th, 2017
 

An array is a collective name given to a group of similar quantities
It is also known as subscripted variable

  Was this answer useful?  Yes

Bhagvanji Kanzariya

  • Dec 15th, 2018
 

Characteristics of an array

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions