How can I print the result of sizeof() at compile time in C?
For now I am using a static assert (home brewed based on other web resources) to compare the sizeof() re
Quick and simple solution that worked for me (GCC):
(char[sizeof(long long)])"bla";
This results in an error message that reveals the size of long long:
long long
ISO C++ forbids casting to an array type 'char [8]'