¿Esta es tu empresa?
implement a function that determines a string is whether a palindrome or not
Anónimo
I wrote a recursive function that gets a string, starting point and ending point.
#include #include main() { char str[]="abcbba"; int len=0; len=strlen(str); for(int i=0;i<=len/2;i++) { if(str[i] != str[(len-i)-1]) { printf("The string is not a palindrome\n"); return; } } printf("The string is a palindrome\n"); }
Sigue a tus empresas favoritas para estar al tanto de las últimas oportunidades y disponer de información de primera mano.
Recibe recomendaciones y actualizaciones personalizadas al iniciar tu búsqueda.