well here is my code, but i can only get it to return 0 and not 1.
int palindrome(char str[]);
int main()
{
char str[20];
int temp;
int retval;
printf("enter a string that is a...
Type: Posts; User: mindclouder
well here is my code, but i can only get it to return 0 and not 1.
int palindrome(char str[]);
int main()
{
char str[20];
int temp;
int retval;
printf("enter a string that is a...
you guys are gonna start hating me real quick but im sorry i have another question. I'm trying to write a program that will notice if a string is a palindrome or not (probably spelled that wrong). ...
thank you very much guys! lots of help.
how do i step through the string if the string is a char and to step through it i need an int, my compiler freaks out when i do this. Sorry to bug again but im pretty new to programming.
how would i go about searching a string for a certain character and returning the amount of times it appears in the string? thanks to anyone that helps!