Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Yes, I do. Unfortunately the author of this article doesn't, and didn't bother to test his examples before making entirely false claims.

The following example will do something very different from what the article says:

  int myarray[4]= {1,2,3,0};
  int *p = myarray;
  while ((*p)++) {
    printf("%d ", *p);
  }


Hi lmm. Thanks for catching that. I have updated the article code with the fixes. This is my first blog post ever. That will teach me not to post without fulling checking the code.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: