I'm trying to understand how to write a macro in C that will determine if an element is an array or a pointer (only these two options) and return true if it is a big array, false if a pointer. This is what I have:
#define IS_ARRAY(vec) { (sizeof(vec) != sizeof(*void)) ? true : false; }/
Is it correct?