|This rule is Obsolete|
|Synopsis:||Apply sizeof to an object rather than to its type|
Applying sizeof to an object rather than to its type has the advantage that if the object's type is changed, the sizeof expression automatically takes this into account.
This makes the code more robust.
int i; size_t s1 = sizeof (int); // allowed if no object available size_t s2 = sizeof i; // preferred if there is a choice