I'm using Visual Studio 2015, and I accidentally wrote two characters in a char, and, for some reason, the code compiled and I got an output on the screen (not even a warning).
#include <string>
#include <iostream>
int main() {
std::cout << 'a ';
std::string temp;
std::getline(std::cin, temp);
return 0;
}
The output is consistently:
24864
What's the logic behind the output?