title: Get ASCII character from number in C/C++
body: <p>my requirement is, when I input a number (say 01 - 100), I should be able to get the ASCII code value for that number.</p>
  
  <p>Ex: 01 = A, 02 = B, 03 = C, so on...., 90 = Z, and if number is 91 = AA, 92 = AB, 93 = AC, etc...</p>
  
  <p>All I could get from googling, etc...was to convert int to a char, get ASCII value, but that happens only while printing using "%c" but not able to save into a CHAR or STRING.</p>
  
  <p>Ex: </p>
  
  <pre><code>int inputNumber=5;  
  char getASCIICharValue = (char)inputNumber;  
  printf("\n getASCIICharValue: %c  \n", getASCIINumberValue);  
  // Above would print 'E' which is correct  
  printf("\n getASCIICharValue as char: %s  \n", getASCIINumberValue);  
  // Above results in a RUN-TIME error.  
  </code></pre>
  
  <p>While printing it is printing the values properly but while saving it to String or Char it not able to.  </p>
  
  <hr>
  
  <p>really sorry for not posting my issue correctly, may be I couldn't put the question properly as this is my first post...    </p>
  
  <p>I am editing my post which may make it little clear...  </p>
  
  <p>input I would enter would be 1 (or any integer, say 1 - 100), and I should be able to get the ASCII representation of that number in decimal...  </p>
  
  <p>assuming 1 is 65, currently what I am doing is, I am first subtracting 1 and then add 65 to it...  </p>
  
  <p>for ex: if the input is 5, it would be 5 - 1 + 65  = </p>
  
  <p>69, which represents uppercase letter E  </p>
  
  <p>same way if the input is 15, my output should be Uppercase O  </p>
  
  <p>hope this is little clear...</p>