Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

casting an int to a char in c

Use ASCII chart.
int i=65;
char ch;
ch= (char)i;
printf("Expected value of ch: A. This value is found by using a ASCII chart");
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #casting #int #char
ADD COMMENT
Topic
Name
7+6 =