In a class, I have to define a constant member initialized in the constructor initializer list and an untagged enumeration to determine the size of an array. I am rather confused by the results produced by sizeof within the class and in the main function.
size= 8 _j = 32 (4*8? why)
The definition of 'sizeof' does not help to clarify the apparent contradiction. I would be most grateful to receive comments.
Hmm, the only time I see you use sizeof() is when you do sizeof(i) prints 32, which seems reasonable for the size of an int. What exactly is the problem?