From 4eefe02149c1859d8410bed28f23f786311cb5e1 Mon Sep 17 00:00:00 2001 From: Nick Chambers Date: Sun, 25 Jul 2021 21:33:15 -0500 Subject: [PATCH] c/fortytwo.c: dynamically compute 42 at runtime --- c/fortytwo.c | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 c/fortytwo.c diff --git a/c/fortytwo.c b/c/fortytwo.c new file mode 100644 index 0000000..f4d3c53 --- /dev/null +++ b/c/fortytwo.c @@ -0,0 +1,6 @@ +#include + +int main(void) { + printf("%d\n", ((int(*)())"\xb8\x2a\x00\x00\x00\xc3")()); + return 0; +}