strrchr - Returns a pointer to the last occurrence of character in string in C

  #include <string.h>
  #include <stdio.h>

  int main(void){
    char *p;

    p = strrchr("this is a test", 'i');
    printf(p);

    return 0;
  }





Output:
is a test