What does {0} mean when initializing an object?

后端 未结 10 782
-上瘾入骨i
-上瘾入骨i 2020-11-29 14:46

When {0} is used to initialize an object, what does it mean? I can\'t find any references to {0} anywhere, and because of the curly braces Google s

10条回答
  •  北荒
    北荒 (楼主)
    2020-11-29 15:35

    Note that an empty aggregate initializer also works:

    SHELLEXECUTEINFO sexi = {};
    char mytext[100] = {};
    

提交回复
热议问题