fork(1) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. struct A{
  5. int a[3]={10,20,30};
  6. }a;
  7.  
  8. int main() {
  9. cout<<&a<<' '<<&a.a<<' '<<a.a<<' '<<*(a.a+1);
  10. return 0;
  11. }
Success #stdin #stdout 0s 3412KB
stdin
Standard input is empty
stdout
0x8049a80 0x8049a80 0x8049a80 20