Overview

TODO

Pointers

Pointers have the same size as the machine’s word size since it should be able to refer to any virtual address.

Structures

A struct is a grouping of data together. It has the following general form:

struct optional_tag {
  type_1 ident1;
  ...
  type_N identN;
} optional_var1 ... optional_varM;

Unions

A union is a grouping of data together but with overlaid storage. It has the following general form:

union optional_tag {
  type1 ident1;
  ...
  typeN identN;
} optional_var1 ... optional_varN;

Bibliography

  • Bryant, Randal E., and David O’Hallaron. Computer Systems: A Programmer’s Perspective. Third edition, Global edition. Always Learning. Pearson, 2016.
  • “ISO: Programming Languages - C,” April 12, 2011, https://port70.net/~nsz/c/c11/n1570.pdf.
  • Van der Linden, Peter. Expert C Programming: Deep C Secrets. Programming Languages / C. Mountain View, Cal.: SunSoft Pr, 1994.