I was just wondering: since sizeof()
's return type is size_t
, why does sizeof(size_t)
give me 4
?
That is, when I malloc(someSize)
, did I asked for someSize
bytes or someSize*4
bytes ?
I've been doing an ASM homework for two days, and I'm getting pretty confused now. Thanks for your help!