|
Sep 08
|
By simply casting the char to an int.
char c = 'A'; int asciiValue = (int) c;
|
|
By simply casting the char to an int. char c = 'A'; int asciiValue = (int) c;
By casting the integer ASCII value to a char. int asciiValue = 65; char ch = (char) asciiValue;
By simply casting the int value to a char. int asciiValue = 65; char ch = (char) asciiValue; |
|
Recent Comments