fork download
  1. #include <stdio.h>
  2. #include <stdint.h>
  3.  
  4.  
  5. int32_t max(int32_t x, int32_t y){ return sizeof(union{char X[x], Y[y];}); }
  6. int main(void) {
  7. printf("%d\n",max(12,-12));
  8.  
  9. printf("%d\n",max(0,-1));
  10. printf("%d\n",max(-1,0));
  11. printf("%d\n",max(-1,21));
  12.  
  13. return 0;
  14. }
  15.  
Success #stdin #stdout 0s 5500KB
stdin
Standard input is empty
stdout
-12
-1
-1
-1