Question : get last char string c
Answered by : marton
char fruit[5] = "apple";
printf("Last character : %c", fruit[strlen(fruit)-1]);
Source : https://reactgo.com/c-get-last-character-string/ | Last Update : Thu, 06 May 21
Answered by : marton
char fruit[5] = "apple";
printf("Last character : %c", fruit[strlen(fruit)-1]);
Source : https://reactgo.com/c-get-last-character-string/ | Last Update : Thu, 06 May 21