In C++11 it allows you to create a 0
length C array and std:array
like this:
int arr1[0];
std::array arr2<int,0>;
- So I'm thinking what is the use of a array that doesn't have a space to store?
- Secondly what is the zero length array? If it is a pointer, where does it pointing to?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…