title: Convert a char * to char
body: <p>How to convert a char * to char.</p>
  
  <p>I have a char pointer </p>
  
  <p><code>char * Data</code>  which gets some value</p>
  
  <p>I also have a variable</p>
  
  <p><code>char result;</code></p>
  
  <p>Can I do </p>
  
  <p><code>result = *(Data)</code>?</p>
  
  <p>If I do so its throwing me a null pointer assignment. </p>
  
  <p>I want to store the values in an array of result for different values of "Data" in a loop.</p>