title: why taking a character input in an integer variable returns 0 in c++?
body: <p>Just from my curiosity in a c++ code  i took character input in an integer variable then printed the value.
  The output of the variable is 0 .But i was expecting to see an ASCII value like 65 or something else. 
  What is the reason behind this ? 
  I used code::blocks to run this code .</p>
  
  <pre><code>#include&lt;bits/stdc++.h&gt;
  using namespace std;
  int main()
  {
      int x;
      cin&gt;&gt;x;
      cout&lt;&lt;x;
  }
  </code></pre>