title: Converting ASCII code to a character value
body: <p>I've just started learning how to program in C and I'm trying to make a program that accepts a number and uses it as an ASCII value to return the ASCII character associated with that value. </p>
  
  <p>The program works when the parameters are predefined but when I introduce the scanf function it compiles but doesnt give me the same results.</p>
  
  <p>Here is my code : </p>
  
  <pre><code>#include &lt;stdio.h&gt;
  
  int main(void) 
  {
      question2();
      return 0; 
  }
  
  int question2(void)
  {
  
  
      int myInt = 65;
  
      scanf("%d", myInt);
      char ch = myInt;
  
      printf("%c",ch);
  
      return 0;
  }
  </code></pre>
  
  <p>Cheers and thanks for any help guys. </p>