SLIDE 1
The programming language C (part 2) alignment, arrays, and pointers
hic 1
alignment, arrays, and pointers hic 1 allocation of multiple - - PowerPoint PPT Presentation
The programming language C (part 2) alignment, arrays, and pointers hic 1 allocation of multiple variables Consider the program main(){ char x; int i; short s; char y; .... } What will the layout of this data in memory be? Assuming 4
hic 1
hic 3
hic 4
hic 5
hic 6
hic 7
hic 8
hic 9
hic 10
11 hic
hic 12
hic 13
hic 14
hic 15
hic 16
hic 17
hic 18
hic 19
hic 20
hic 21
hic 22
hic 23
hic 24
hic 25
hic 26