Versions Compared

Key

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

...

Wiki Markup
According to the WG14 Document \[1\]:

Given an integer expression E, the derived type T of E is determined as follows:

  • if E is a sizeof expression, then T is the type of the operand of the expression;
  • otherwise, if E is an integer identifier, then T is the derived type of the expression last used to store a value in E;
  • otherwise, if the derived type of each of E's subexpressions is the same, then T is that type;
  • otherwise, the derived type is an unspecified character type compatible with any of char, signed char, and unsigned char.

Example:      int val;

Wiki Markup
                     {{int arr \[ARR_SIZE\];}}

...