im very new to programming so i need some help.
Im currently trying to read the memory directly using pointers,
for example 23 stored in the memory for a float variable is: 41b80000
is there any way i can directly read this value from the memory and store it in an array?
Note: I tried to create a pointer which points to the memory location but when i dereference it, it gives me 23.
any ideas would be GREATLY appreciated, ive been working over this for almost 5 hours now.
Jump to Post
This code shows creating an int, creating a pointer to it, creating an array of pointers, storing the memory address as a plain int, and then using that plain int to get back the contents of the memory address.
It's C++ code to make outputting the values easy; the …
All 4 Replies
We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.