Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Viewing all articles
Browse latest Browse all 22461

How can I access the content of a memory using C/C++?

$
0
0

I want to know the highest address of a RAM. Say I have RAM 4GB (in a 32 bits computer) and 16GB (in a 64-bits computer), but it also shared with display, which is mean that not all the RAM used for application. I want to know what is the address of part of the RAM that it still unoccupied, and what is the data type inside of a particular memory address? Seems like many question in here. This is clearly about pointer and memory allocation. But actually is what I want to know is:

What is the command to know in C/C++? Say I want to access the content of a memory address '4294967295d' or 'FFFF FFFFh', or any other address.

My compiler is gcc both under Windows and under Linux.


Viewing all articles
Browse latest Browse all 22461

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>