title: I tried to return a pointer from a function? But i am not able to get the value back on that specified address
body: <pre><code>#include &lt;stdio.h&gt;
  
  int *changeAddress(){
  
  
       int c=23;  
          int *ptr= &amp;c;
          printf("Inside function Address of Pointer is %p\n",ptr);
          printf("Inside function Value of of Pointer is %d\n",*ptr);
          return (ptr);
  
  }
  int main(void){
  
  
       int *b=changeAddress();
          printf("Inside main Address of Pointer is %p\n",b);
          printf("Inside main Value of of Pointer is %d\n",*b);
          return 0;
  
  }
  </code></pre>
  
  <p>//In the above program i am trying to access the value of local variable c and pass it to the main function and trying to get back the value of c variable in the main function. </p>