I'm learning the C programming language.
Is there any good/reasonable way to get the actual type from a string value?
I already heard the sizeof
operator is almost a compile-time thing.
Say we have the following string literal which may be provided in runtime.
char *name_of_long_long_int = "long long int";
Is there any way to do something effects following?
size_t size_of_long_long_int = sizeof(long long int);