これうんこコードですか?

 if (color)
  pointer ? pointer[n] = color, n++ : n++;

意図が明確で、上から下に、左から右に読めば理解できて、なおかつ見やすい。
これでいいよね?