c/fortytwo.c: dynamically compute 42 at runtime

This commit is contained in:
Nick Chambers 2021-07-25 21:33:15 -05:00
parent 6d18c17400
commit 4eefe02149
1 changed files with 6 additions and 0 deletions

6
c/fortytwo.c Normal file
View File

@ -0,0 +1,6 @@
#include <stdio.h>
int main(void) {
printf("%d\n", ((int(*)())"\xb8\x2a\x00\x00\x00\xc3")());
return 0;
}