4 ms·
Knowledge is knowing that sizeof(int) is implementation-defined. Wisdom is understanding how likely your code is to ever run on any platform where sizeof(int)
by yongjik 3y ago
Knowledge is knowing that sizeof(int) is implementation-defined.
Wisdom is understanding how likely your code is to ever run on any platform where sizeof(int) is not 4, and if the answer is "not really," then stop worrying about it.
To succeed as a C programmer, you need both knowledge and wisdom.
- acuozzo 3y agoAnd expertise is baking that assumption into the code explicitly with a static_assert.