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
Mukesh Rajput

Mukesh Rajput

I am a Computer Engineer, a small amount of the programming tips as it’s my hobby, I love to travel and meet people so little about travel, a fashion lover and love to eat food, I am investing a good time to keep the body fit so little about fitness also..

Post A Comment:

0 comments: