 <p>One thing to note is that you can do <code>sizeof</code> on the type itself and not just on a variable:</p> <pre><code>// Check if the pointer size of a generic data pointer is different // than the pointer size of a function if (sizeof(void *) != sizeof(int (*)())) { ... } </code></pre>