title: Print extended ASCII char in C, Linux
body: <p>Im trying to print all extended ASCII chars. I have found a code on forum:</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;wchar.h&gt;
  #include &lt;locale.h&gt;
  #include &lt;iostream&gt;
  
  int main(void) {
      wchar_t c;
      setlocale(LC_ALL, "C");
  
      for (c = 128; c &lt; 256; c++) {
          wprintf(L"char nr %d: %lc\n", c, c);
      }
      printf("\n%s\n", setlocale(0, NULL));
  
      std::cin.get();
      std::cin.get();
  return 0;
  }
  </code></pre>
  
  <p>This code is working in windows in VS 2017.
  <a href="https://i.stack.imgur.com/udkDw.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/udkDw.png" alt="enter image description here"></a></p>
  
  <p>In the screenshot, you can see the result of this code in windows and Linux. I know that problem is with coding, but I don't know how to fix it.</p>