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
hic 27
hic 28
hic 29
hic 30
hic 31
hic 32
hic 33
hic 34
hic 35
hic 36
hic 37
hic 38
hic 39
hic 40
hic 41
hic 42
hic 43