Best paper awards at ICALP 2012
-
The preliminary version of the detailed programme for ICALP 2012 is now
available here. While skimming through the programme, I learnt that the
best paper ...
37 minutes ago
sizeof(X)
ReplyDeletePointer arithmetic :), displacement of sizeof(X) still acts as pointer.
ReplyDelete(unsigned)((X *) 0)+1) // sizeof(X)
class X
{
public:
display() { cout << "hi" }
private:
int gender;
};
((X *)(0))->display(); // won't touch X substrate (no runtime surprises)
C++ is fun to play around :)