Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

char to int


char a = 'a';
int ia = (int)a; 
/* note that the int cast is not necessary -- int ia = a would suffice */

Source by w3programmers.org #
 
PREVIOUS NEXT
Tagged: #char #int
ADD COMMENT
Topic
Name
9+2 =