What is the purpose of ANYSIZE_ARRAY in ?

前端 未结 2 741
北荒
北荒 2021-01-18 14:21

What\'s the purpose of ANYSIZE_ARRAY, located in WinNT.h?

I see an MSDN blog post about it from 2004 but it doesn\'t make sense to me.

2条回答
  •  长情又很酷
    2021-01-18 15:14

    From this page:

    In C, a variable-size array is declared as a[1] or a[ANYSIZE_ARRAY], where ANYSIZE_ARRAY is defined as 1. Then it is used as if it were bigger.

提交回复
热议问题