Q;- What Is Difference Between Array & Structure
ARRAY
|
STRUCTURE
|
||
1
|
An array is a
collection of related data elements of same type.
|
1
|
Structure can have
elements of different types
|
2
|
An array is a
derived data type .
|
2
|
A structure is a
programmer-defined data type
|
3
|
Any array behaves
like a built-in data types. All we have to do is to declare an array variable
and use it.
|
3
|
first we have to
design and declare a data structure before the variable of that type are
declared and used.
|
No comments:
Post a Comment