Quickest way to initialize an array of structures to all-0’s?
It the first member of your struct has a scalar type, use STRUCTA array[MAX] = {{ 0 }}; If the first member of your struct happens to be another struct object, whose first member has scalar type, then you’ll have to use STRUCTA array[MAX] = {{{ 0 }}}; and so on. Basically, you have to … Read more