I compile the application for 64 bit Windows operating system.
The application should save 64 bit addresses, I have to decide about variable type, to save them. I thought to save them in long. But sizeof(long) == 4.Where and how can I save the addresses
I compile the application for 64 bit Windows operating system. The application should save
Share
You should store memory addresses in pointers:
You can get the address of a variable like this:
Note: there are some differences between C and C++ regarding pointers (esp. void pointers). See the C and C++ standards. There is no such thing as “C/C++”.