Browse - Programming Tips - I see ARRAYSIZE() is used in some MSDN sample code but I don't have it.

Date: 2009apr6
Language: C/C++

Q.  I see ARRAYSIZE() is used in some MSDN sample code but I don't have it.
What should it look like?

A.  Like this:

#define ARRAYSIZE(_a) (sizeof((_a)) / sizeof((_a)[0]))