Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

get last char string c

char fruit[5] = "apple";
printf("Last character : %c", fruit[strlen(fruit)-1]);
Source by reactgo.com #
 
PREVIOUS NEXT
Tagged: #char #string
ADD COMMENT
Topic
Name
1+9 =