fork download
  1. #include <array>
  2. #include <iostream>
  3.  
  4. int main(void)
  5. {
  6. int aFoo[100];
  7. std::array<int, 100> arFoo;
  8. std::cout << std::hex << aFoo << "\n";
  9. std::cout << std::hex << &(aFoo[0]) << "\n";
  10. std::cout << std::hex << &(arFoo[0]) << "\n";
  11. std::cout << std::hex << arFoo.begin() << "\n";
  12. std::cout << std::hex << arFoo.data() << "\n";
  13. return (0);
  14. }
Success #stdin #stdout 0s 2852KB
stdin
Standard input is empty
stdout
0xbf88aba0
0xbf88aba0
0xbf88ad30
0xbf88ad30
0xbf88ad30