fork(7) download
#include <iostream>
using namespace std;

struct C{int n;};
struct A{int n;};
struct B : A, C{};

int main()
{
    B b;
    B* pb = &b;
    cout << static_cast<C*>(pb) << "\n";
    cout << reinterpret_cast<C*>(pb);
}

Success #stdin #stdout 0s 15240KB
stdin
Standard input is empty
stdout
0x7fff1b7f5804
0x7fff1b7f5800