0

C++ print value memory

if i write a program A that store a variable to heap. //program that name ABC #include <unistd.h> int x = new int; *x = 5; cout << x; //print memory address usleep(5000000) //make the program wait if the output is 0x7529 then is it possible to print the 0x7529 value from another program while the ABC program waiting? if yes how?

19th Oct 2017, 11:20 AM
Kevin AS
Kevin AS - avatar
4 Answers
0
those sites is having a complex code. i just need the simple code
19th Oct 2017, 1:08 PM
Kevin AS
Kevin AS - avatar
0
This can't be achieved simply. Simple answer - it can't be done by obeying all the rules.
19th Oct 2017, 1:12 PM
deFault
0
i just getting started with c++. i will learn it later. thanx for your response
19th Oct 2017, 1:40 PM
Kevin AS
Kevin AS - avatar