075-ptr-cmp.c (225B)
1 /* §K.6 — pointer comparison is unsigned. 2 * &a[1] is one int past &a[0], so the comparison is well-defined and 3 * the result of the > comparison is exactly 1. */ 4 int main(void) { 5 int a[2]; 6 return &a[1] > &a[0]; 7 }
boot2Playing with the boostrap | |
| git clone https://git.ryansepassi.com/git/boot2.git | |
| Log | Files | Refs | README |