Accessing A Variable Of The Another Program In C
In python, you can learn memory location of variables by using id function, so: X = 'Hello world!' print(id(X)) # Output is equal to 139806692112112 (0x7F27483876F0) I'm tried to
Solution 1:
Doing something like this is more and more impossible these days. With features like address space layout randomization you can't really tell where a given program, let alone variable will load in actual memory.
Best bet is to use some type of message passing. Not sure why all the downvotes on your question, but it seems like a reasonably put question, even if not technically feasible these days.
Post a Comment for "Accessing A Variable Of The Another Program In C"