boot2

Playing with the boostrap
git clone https://git.ryansepassi.com/git/boot2.git
Log | Files | Refs | README

087-sizeof-noeval.c (247B)


      1 /* sizeof does NOT evaluate its operand expression. CC.md §Expressions. */
      2 
      3 int main(int argc, char **argv) {
      4     int x = 5;
      5     int s = sizeof(x++);  /* must not increment x */
      6     if (s != 4) return 1;
      7     if (x != 5) return 2;
      8     return 0;
      9 }