Sunday 24 June 2012

Write a code that allocates and then frees an array of seven pointers to functions that return integers.


int (**p) () = new (int (*[7]) ());
delete *p;

http://msdn.microsoft.com/en-us/library/kewsb8ba.aspx

No comments:

Post a Comment