I think this can be grouped into the declaration by simply saying char header[6] = {0};. I don't have the standard at hand, but I AFAIK, missing fields in an initializer-list is filled with 0, whenever there IS an initializer-list.