How can I print the result of sizeof() at compile time in C?
I was mucking around looking for similar functionality when I stumbled on this: Is it possible to print out the size of a C++ class at compile-time? Which gave me the idea for this: char (*__kaboom)[sizeof( YourTypeHere )] = 1; Which results in the following warning in VS2015: warning C4047: ‘initializing’: ‘DWORD (*)[88]’ differs in … Read more