Are different data types in a structure also stored sequentially in computer's memory like arrays ?
Asked
Active
Viewed 67 times
-1
-
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 Answers
0
Structure and array follow same storing process. Difference is structure can hold different types of data but array don't.

Md. Shohan Hossain
- 120
- 1
- 13