Year 2 compilers coureswork

simple_BACKUP_24791.c 259B

12345678910111213141516171819202122
  1. <<<<<<< HEAD
  2. int whammy(int a) {
  3. int x = a;
  4. return x + 5;
  5. }
  6. function twice(function f) {
  7. int g(int x) { return f(f(x)); }
  8. return g;
  9. }
  10. =======
  11. >>>>>>> 890548e7968c2e8be77eb6170819538f116397bd
  12. int main() {
  13. int b = 4;
  14. int a = b();
  15. return x;
  16. }