Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int quux;
- // addition
- int gen(int foo, int bar) {
- return bar ? gen(foo ^ bar, (foo & bar) << 1) : foo;
- }
- // multiplication
- int doSomethingElse(int foo, int bar) {
- // for (quux = 0; foo > 0; foo = gen(foo, gen(-2, 1)))
- for (quux = 0; foo > 0; foo--)
- quux += bar;
- return quux;
- }
- int spam;
- int main() {
- char text[] = {
- // [0...4] = doSomethingElse(doSomethingElse(2, 5), doSomethingElse(2, 5))
- // [0...4] = doSomethingElse(10, 10)
- [0...4] = 100
- };
- int asdf[] = {
- 4,
- 1,
- 8,
- 8,
- 11
- };
- for (spam = 0; spam < 5; spam++)
- putchar(text[spam] + asdf[spam]);
- // 100 + 4, 100 + 1, 100 + 8, 100 + 8, 100 + 11
- // outputs "hello"
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement