An example:
int array [10];
yaaa this is write but for a simple programs on array and all data structure visit codingdatastructure.blogspot.com
I think the data structure in question is array.
A complex data structure is the kind of structure that has two arrays. One array hols the real part of the complex data and the other array holds the imaginary part.
An array is a collection of related data elements of same type.Structure can have elements of different types.An array is a derived data type.A structure is a programmer-defined data type.A struct can contain multiple data types, whereas an array can not.
Array
array
in homogeneous data structure all the elements of same data types known as homogeneous data structure. example:- array
Array, Stake, Queue.
The main differences between an array and a structure are: An Array is a collection of similar data items.An array is derived data type.It behave like a built in data type. An array can be increased or decreased. A structure is a collection of dissimilar data items.It is a user defined data types.It must be declared and defined.A structure element can be added if necessary.
a parallel is data structure for representing array of records.
it is in sequence,a chain kind of thing
That rather depends on the underlying type. For any given type T, an array of type T is user-defined if T is user-defined, otherwise it is built-in. For example: #include<string> // required to use std::string std::string s[42]; // user-defined array int i[42]; // built-in array Here, s is a user-defined array because std::string is a user-defined type, whereas i is a built-in array because int is a built-in type.
structure is a collection of dissimilar datatypes whereas array is collection of similar datatypes.....