Quickest way to initialize an array of structures to all-0's?

后端 未结 7 611
无人及你
无人及你 2020-12-14 16:49

I\'m trying to initialize an array of structures to all-0\'s, using the below syntax:

STRUCTA array[MAX] = {0};

However, I\'m getting the f

相关标签:
7条回答
  • 2020-12-14 17:46

    Can STRUCTA be assigned to 0?

    You can always use memset(), too.

    0 讨论(0)
提交回复
热议问题