071-fnptr-call.c (164B)
1 /* §K.2 — function-pointer call. */ 2 int triple(int x) { return x + x + x; } 3 4 int main(void) { 5 int (*fp)(int); 6 fp = triple; 7 return fp(7); /* 21 */ 8 }
boot2Playing with the boostrap | |
| git clone https://git.ryansepassi.com/git/boot2.git | |
| Log | Files | Refs | README |