Is there a way to introspect an array's size?

Posted by WilliamKF on Stack Overflow See other posts from Stack Overflow or by WilliamKF
Published on 2010-05-22T18:13:55Z Indexed on 2010/05/22 18:20 UTC
Read the original article Hit count: 135

Filed under:
|
|

In C++ given an array like this:

unsigned char bogus1[] = {
  0x2e, 0x2e, 0x2e, 0x2e
};

Is there a way to introspect bogus1 to find out is is four characters long?

© Stack Overflow or respective owner

Related posts about c++

Related posts about array