In: Computer Science
How do I use ASCPII that produces two alphabets where one is uppercase and the other lowercase using C++
Lets use Y and/or A
Below given is the ascii table. Here you can find decimal representation for each uppercase and lowercase alphabet and you can initialize a character variable with decimal represtation of the alphabet also.
For example if you want to initialize a character C with 'A' in C++, you can either write
char C = 'A';
or
char C = 65; //here 65 is the decimal representation of 'A'
or
char C = 0x41; //here 41 is the hexadecimal representation of 'A'