fork(3) download
  1. #include <stdio.h>
  2. void f(char **p) {
  3. int i = 0;
  4. while (*p) {
  5. printf("%d:%s\n", i++, *p++);
  6. }
  7. }
  8. int main(void) {
  9.  
  10. f((char*[]){"a", "b", NULL});
  11. return 0;
  12. }
  13.  
Success #stdin #stdout 0s 9424KB
stdin
Standard input is empty
stdout
0:a
1:b