When I tried the code below, I found there's a problem
Run-Time Check Failure #2 - Stack around the variable 'name' was corrupted
#include <iostream>
using namespace std;
int main() {
    char name[1];
    cout << "Input:";
    cin >> name;
    cout << (int)name << endl;
    system("pause");
    return 0;
}
 
    