What's the precedence in the next expression?
item = (char*)heap + offset;
Is it (char*)(heap + offset) or ((char*)heap) + offset?
(char*)(heap + offset)
((char*)heap) + offset
Cast trumps binary addition according to the precedence table.
2.1m questions
2.1m answers
60 comments
57.0k users