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.
1.4m articles
1.4m replys
5 comments
57.0k users