Question { IBM, 127451 }
what is difference between array and structure?
Answer
ARRAY:
An array is defined as a group of related data items stored by means of a single variable name.
STRUCTURE:
Structure is defined as a data type to represent several different types of data with a single name.
DIFFERENCE BETWEEN ARRAYS AND STRUCTURES:
1.All data in a array should be of same data type.But in structures data can be of different data types.
2.Individual entries in an array are called elements.But in structure individual entries are called members.