title: Converting/typecasting Int pointer to char pointer, but getting ascii characters?
body: <p>So I was going through a tutorial for pointers for C/C++, and the tutor comes to typecasting</p>
  
  <p>he says for C bringing a address from a int pointer to a char pointer can be done like this:</p>
  
  <pre><code>int f = 1025;
  int *point = &amp;f;
  char *point3;
  point3 = (char*)point;
  </code></pre>
  
  <p>I do so but I get a smiley face and Diamond acsii image (shown in img link).</p>
  
  <p>So I try using <code>reinterpret_cast&lt;char*&gt;(point)</code> since I looked it up thought "maybe this is the C++ equivalent", now it looks like this:</p>
  
  <pre><code>int f = 1025;
  int *point = &amp;f;
  char *point2;
  point2 = reinterpret_cast&lt;char*&gt;(point);
  </code></pre>
  
  <p>but i still get the two funny acsii characters.</p>
  
  <p>Am i missing something? Not sure how to fix this since i just began on the chapter of pointers.</p>
  
  <p>whole programme</p>
  
  <pre><code>#include &lt;iostream&gt;
  
  
  using namespace std;
  int main(){
  
  int f = 1025;
  int *point = &amp;f;
  cout &lt;&lt; sizeof(f) &lt;&lt; endl;
  cout &lt;&lt; "value" &lt;&lt; *point &lt;&lt; "address" &lt;&lt; point &lt;&lt; endl;
  char *point2;
  point2 = reinterpret_cast&lt;char*&gt;(point); // using method i found
  char *point3;
  point3 = (char*)point; // using method given in the tutorial
  cout &lt;&lt; endl;
  cout &lt;&lt; "value" &lt;&lt; *point2 &lt;&lt; "address" &lt;&lt; point2 &lt;&lt; "   "&lt;&lt; point3 &lt;&lt; endl;
  
  system("pause");
  return 0;
  }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/TgteY.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/TgteY.jpg" alt="enter image description here"></a></p>
  
  <p><a href="https://www.youtube.com/watch?v=JTttg85xsbo" rel="nofollow noreferrer">The Tutorial i was following</a></p>