fork download
  1. #include <stdio.h>
  2.  
  3. struct B1 {};
  4. struct B2 {};
  5. struct D : public B1, B2 {};
  6.  
  7. int main()
  8. {
  9. D ar[2];
  10. printf("%p\n", &ar[0]);
  11. printf("%p\n", &(B2&)ar[0]);
  12. printf("%p\n", &ar[1]);
  13. }
  14.  
Success #stdin #stdout 0s 2852KB
stdin
Standard input is empty
stdout
0xbfc6476e
0xbfc6476e
0xbfc6476f