073-voidptr-impl.c (233B)
1 /* §K.4 — void* <-> T* implicit conversion (no cast required). */ 2 int main(void) { 3 int x; 4 void *p; 5 int *q; 6 x = 42; 7 p = &x; /* int* -> void* */ 8 q = p; /* void* -> int* */ 9 return *q; /* 42 */ 10 }
boot2Playing with the boostrap | |
| git clone https://git.ryansepassi.com/git/boot2.git | |
| Log | Files | Refs | README |