Interview Questions

What are the characteristics of arrays in C?

C Interview Questions and Answers


(Continued from previous question...)

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 locations
3) Two-dimentional array elements are stored row by row in subsequent memory locations.
4) Array name represents the address of the starting element
5) Array size should be mentioned in the declaration. Array size must be a constant expression and not a variable.

(Continued on next question...)

Other Interview Questions