News for hackers. Stuff that matters.
Re:A convenient untruth: Array notation in C is a lie by gpderetta on Thursday December 22, 2016 @01:35PM (#13239288)
That's because [1]

  char* foo, bar;
doesn't mean what one would expect it to mean.

[1] as per Rule of Maximum Astonishment.

Re:A convenient untruth: Array notation in C is a lie by itsuart on Thursday December 22, 2016 @01:44PM (#13239350)
I find that

char* foo = NULL;

char bar = 0;

are preferable. Is there any reason one would want to smash N declarations into one?

Re:A convenient untruth: Array notation in C is a lie by gpderetta on Thursday December 22, 2016 @02:10PM (#13239528)
I prefer that as well, but because the other option is possible and sometimes used, a few prefer to put the star close to the name as to avoid mistakes.