getting virtual table pointer c++
<p>I have a class such as</p>

<pre><code>class Stuff
{
private:
int x;
virtual int buisness()
{
  return 42;
}
public:
 Stuff(){
  x = 5;
}
</code></pre>

<p>Given a pointer to an instance of this class</p>

<pre><code>Stuff stuff;
void* thing = &amp;stuff;
</code></pre>

<p>How would I get a pointer to the variable x and a pointer to the virtual function table of that class using just the pointer "thing"?</p>

<p>Edit:  to clarify this was a challenge sent to me and I have been assured that it is not a trick question.</p>