4 ms·Enums can be used for that purpose.by xiaq 11y agoEnums can be used for that purpose._kst_ 11y agoTrue, but only for type int. enum { MAX = 1000 };J_Darnley 11y agoWhy is this preferable over a preprocessor define? Is it because it can't be redefined easily? A max or count is certainly useful when there are other enum values but I don't see the huge advantage it has here._kst_ 11y agoEnumeration constants have scope.