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