Hello, my respected gurus:
I define a std::vector<double> a(100); and I want to see how this array are allocated in heap, I mean the address of each element of array a. For example , I want to see the address of a[10]
How can I manage that!
Hello, my respected gurus:
I define a std::vector<double> a(100); and I want to see how this array are allocated in heap, I mean the address of each element of array a. For example , I want to see the address of a[10]
How can I manage that!
Take the address of it! :)Code:double* the_address = &a[10];