fork download
  1. #include <stdio.h>
  2.  
  3. void skiprint(const char *zs, int n) {
  4. while (n--) { while (*zs) zs++; zs++; }
  5. puts(zs);
  6. }
  7.  
  8. int main(void) {
  9. char *data = "red\0orange\0yellow\0"
  10. "green\0blue\0indigo\0violet";
  11. skiprint(data, 3);
  12. return 0;
  13. }
  14.  
Success #stdin #stdout 0s 4520KB
stdin
Standard input is empty
stdout
green