Questions tagged [sizeof]

For questions about sizeof, an operator in C and C++ that determines the size in memory of a certain type/object, or implementing similar features in programming languages.

Filter by
Sorted by
Tagged with
6 votes
2 answers
322 views

If size could be determined at compile time then why could size not be determined at preprocess time?

In C the sizeof() operator cannot be resolved in preprocessor conditions. If other operators such as + or ...
user16217248's user avatar
  • 7,525