Hi,
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.
Alvi89
0
Newbie Poster
Recommended Answers
Jump to PostThis 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
Moschops
683
Practically a Master Poster
Featured Poster
Alvi89
0
Newbie Poster
Moschops
683
Practically a Master Poster
Featured Poster
Panathinaikos22
-14
Junior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.