What are the differences between structures and arrays?
C Programming Language > Structure in C Language > About Java Tutorial
1930
Answer:
Structure is a collection of heterogeneous data type but the array is a collection of homogeneous data types.
Array
- It is a collection of data items of same data type.
- It has declaration only
- There is no keyword.
- array name represents the address of the starting element.
Structure
- It is a collection of data items of different data type.
- It has declaration and definition
- keyword struct is used the
- Structure name is known as tag it is the short hand notation of the declaration.
This Particular section is dedicated to Question & Answer only. If you want learn more about C Programming Language. Then you can visit below links to get more depth on this subject.
Join Our telegram group to ask Questions
Click below button to join our groups.