C Get Last 3 Characters Of String

[Solved] C Get Last 3 Characters Of String | Vb - Code Explorer | yomemimo.com
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

Answers related to c get last 3 characters of string

Code Explorer Popular Question For Vb