Check out example codes for "c++ get ascii value of char". It will help you in understanding the concepts better.

Code Example 1

#include<iostream>
using namespace std;
int main ()
{
    char c;
    cout << "Enter a character : ";
    cin >> c;
    cout << "ASCII value of " << c <<" is :  " << (int)c;
    return 0;
}

Learn ReactJs, React Native from akashmittal.com