hey guys,Code:#include<iostream.h> int main() { int a; cin>>a; cout<<a; }
i had the idea that when a character is assigned to an int variable,
what would be stored in the int variable would be the ascii value of the character.
so in the above code,if i input 'a' when the program runs, i thought 97
will be the output but its not so
please explain or show me somewhere i can read about htis