#include <stdio.h> #include<string.h> int main(){ char str[100] = "Hi How are you? Hi I am Fine"; char *ptr; ptr = strrstr(str, "Hi"); printf("%s", ptr); return 0; }