#include <stdio.h>
#include <string.h>
int main()
{
char str1[10], str2[] = "engine";
printf("%c\n", str1[strcmp(strcpy(str1, "ine"), str2+3)]);
return 0;
}
References: C From Theory