Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

One of the problems with arrays is determining the size. The sizeof operator yields the size (in bytes) of its operand, which may be an expression or the parenthesized name of a type.

...

. However, using the sizeof operator to determine the size of arrays is error prone.

Non-Compliant Code Example

...