fork(5) download
  1. #include <stdio.h>
  2.  
  3. #define ICE_P(x) _Generic((1? (void *) ((x)*0) : (int *) 0), int*: 1, void*: 0)
  4.  
  5. int main(void) {
  6. int x = 1;
  7. printf("%d %d\n", ICE_P(1), ICE_P(x));
  8. return 0;
  9. }
  10.  
Success #stdin #stdout 0s 4500KB
stdin
Standard input is empty
stdout
1 0