title: How can I get data from a program?
body: <p>How can I retrieve the data it contains from a running program? And can I interfere with the program? For example, can I change the variables?</p>
  <p>For example:</p>
  <p>Runnning program code:</p>
  <pre><code>#include &lt;stdio.h&gt;
  
  int main(){
          int a = 0;
  
          while (1){
                  ++a;
          }
          return 0;
  }
  </code></pre>
  <p>Imagine this program running on my computer all the time. Now can I get the value of the variable &quot;a&quot; in this program using another C code? And, for example, can I replace it with a value of 100?</p>