title: Assigning a malloc'd variable value to a new variable, is the new variable also on heap memory?
body: <p>I am confused about whether the following new variable "num2" is also on the heap memory, because I assigned "num1" value to it and num1 was assigned to heap memory.</p>
  
  <pre><code>int main()
  {
  
      int *num1 = malloc(sizeof(int)); /* assign num1 to heap memory */
      *num1 = 7;
  
      int num2 = *num1;               /* assign num1's value to num2, is num2 also on heap?*/
  
  
      return 0;
  }
  </code></pre>