fork(1) download
  1. #include <iostream>
  2. #include <cstdio>
  3.  
  4. using namespace std;
  5.  
  6. #define MX 1000
  7.  
  8. typedef int arr_mx[MX];
  9.  
  10. int _t[MX+1];
  11. arr_mx &t = *((arr_mx*)(&_t[1]));
  12.  
  13. int main() {
  14. printf("%lu %p %p", sizeof(t), (void*)_t, (void*)t);
  15. return 0;
  16. }
Success #stdin #stdout 0s 2732KB
stdin
Standard input is empty
stdout
4000 0x80498a0 0x80498a4