fork download
  1. #include <stdio.h>
  2.  
  3. void printit(const char **data){
  4. while(*data)
  5. fputs(*data++, stdout);
  6. }
  7.  
  8. int main(void){
  9. char hi[] = { 'h','i','\0' };
  10. char how[] = {"how"};
  11. char are[] = "are";
  12. const char *you = "you";
  13.  
  14. printit((const char*[]){ hi, how, are, you, NULL});
  15. return 0;
  16. }
  17.  
Success #stdin #stdout 0s 10320KB
stdin
Standard input is empty
stdout
hihowareyou