fork(1) download
  1. #include <stdio.h>
  2.  
  3. #define lambda(ret_type, _body) ({ ret_type _ _body _; })
  4.  
  5. int main(void) {
  6. int (*max)(int, int) = lambda(int,
  7. (int x, int y) {
  8. return x > y ? x : y;
  9. });
  10.  
  11. int max_value = max(1,2);
  12.  
  13. printf("%d\n", max_value);
  14.  
  15. return 0;
  16. }
  17.  
Success #stdin #stdout 0s 4376KB
stdin
Standard input is empty
stdout
2