... element (8)—resulting in the number of elements in
Figure 8.14 uses
sizeof to calculate the number of bytes used to store many of the standard data types. The output was produced using the default settings in Xcode 7.2 on Mac OS X. Type sizes are platform dependent. When we run this program on Windows, for example,
long is 4 bytes and and
long is 8 bytes, whereas on our Mac, they’re both 8 bytes.