Answers for "get last char string c"

C
0

get last char string c

char fruit[5] = "apple";
printf("Last character : %c", fruit[strlen(fruit)-1]);
Posted by: Guest on April-29-2021
0

how to check where the last char is in a string c

strlen(str);
Posted by: Guest on June-01-2020
0

what is the last character of a string in c

The last character of string in C is '\0'
Posted by: Guest on March-09-2021

Code answers related to "C"

Browse Popular Code Answers by Language