Five differences between Structure and Array
1) Nested structures are also accessed in structures but no nested arrays are used in arrays.
2) In structures, we use a reserved word like struct but we do not use any reserved word.
3) Definition and declaration of program in structures are different but it should be same in array.
4) Structures is a group of data of different data types but an array is a group of data of same data types.
5) Structure members are accessed by using dot (.) operator but index is used to access data in arrays.
Thanks
Mukesh Rajput
Post A Comment:
0 comments: