title: Printing all the ASCII Values in C/C++
body: <p>Hello Everyone its been Long that I am not in touch with the C/C++ Language and was just revising the concepts again and I came across this question which asked to write a program to display all the ASCII characters and I wrote the following good, but it is not giving expected result. Can anyone please tell what is the Problem with this code.</p>
  
  <pre><code>#include&lt;iostrem.h&gt;
  int main()
  {
      unsigned char a;
      for(a = 0; a &lt; 256; ++a)
      {
          cout &lt;&lt; a &lt;&lt; " ";
      }
      return 0;
  } 
  </code></pre>