get the last char of an array c code example
Example: get last char string c
char fruit[5] = "apple";
printf("Last character : %c", fruit[strlen(fruit)-1]);
char fruit[5] = "apple";
printf("Last character : %c", fruit[strlen(fruit)-1]);