char fruit[5] = "apple";
printf("Last character : %c", fruit[strlen(fruit)-1]);
The last character of string in C is ' '
strlen(str);
Code Example |
---|
:: |
C :: les fichiers en c |
:: |
:: typedef c |
:: |
C :: marquee html code with right |
:: C Accessing Union Members |
C :: |
C :: do a barrel roll |
:: spacemacs start server |
C :: |
:: amazon kinesis disaster recovery |
C :: |
C :: |
:: nested if example in c |
:: code to reverse the words in a sentnce |
:: |
:: |
:: |
:: |
C :: c michael |
:: |
:: |
:: The closest in between |
:: |
:: merge sort in c |
:: |
:: |
:: |
Dart :: open link with button flutter |