Hi,I have a question related to pointer topic.I have a class omega as given below and 2 objects of this class ,in main I print their adresses,I expect the difference between them as much as sizeof an omega object(which I think is 30+4=34)
When I run the program,I see these adresses for om1 and om2 :
0X23ff10
0X23fee0
sizeof omega: 36
Is there something wrong here? OR I misunderstood what I studied.
So ,since it uses "word" it may not put my objects in memory just one after another.It's ok.
BUT,what about sizeof(omega)?It gives "36" as output for size of omega.I expected it to be 34.Do I miss something?
Thanks