title: How to print superscript 2 in c/c++?
body: <p>I'm trying to do print a square mark in following code: </p>
  
  <p>code 1:  </p>
  
  <pre><code>char* exp = new char[300];  
  *(exp) = 178// which is 2's extended ascii code  
  *(exp+1) = '\0'// end of string  
  printf("%s",exp);`
  </code></pre>
  
  <p>it will print "?" </p>
  
  <hr>
  
  <p>and seems like the little 2 will join the next letter automatically:  </p>
  
  <p>code 2:  </p>
  
  <pre><code>char* exp = new char[300];  
  *(exp) = 178// which is 2's extended ascii code  
  *(exp+1) = '4'// or anything '5' 'a' '#'...  
  *(exp+2) = '\0'// end of string  
  printf("%s",exp);
  </code></pre>
  
  <p>it will print a Chinese word or maybe not but really likes.</p>
  
  <hr>
  
  <p>What supposed to do? I just want to print the "little 2".</p>
  
  <p>PS:</p>
  
  <p>In WindowsXP console, really thanks for your help.</p>