-1

Are different data types in a structure also stored sequentially in computer's memory like arrays ?

Yash Kant
  • 458
  • 1
  • 6
  • 11
  • 5
    [There may be padding between the members](http://stackoverflow.com/q/4306186/1171191). – BoBTFish Feb 27 '16 at 17:21
  • If I define two types of data for example an integer and a character inside a structure then will their addresses be just after one another....@MattiVirkkunen – Yash Kant Feb 27 '16 at 17:22

1 Answers1

0

Structure and array follow same storing process. Difference is structure can hold different types of data but array don't.