answersLogoWhite

0

use the strrev() function on the given string and compare with original string.If both are equal they are palindromes else not.

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

WAP to find Palindrome in given sentence like - The new radar is placed on station - asked in persistent written test?

plz any1 give code on given exampleAs i know we can check String is it palindrome or not..take a look onCode_for_palindrome_checking_in_c_programmingorvoid main(){char strsrc[100];char strtmp[100];printf(" Enter String:= ");gets(strsrc);strcpy(strtmp,strsrc);strrev(strtmp);if(strcmp(strsrc,strtmp)==0)printf("\n Entered string " %s " is palindrome",strsrc);elseprintf("\n Entered string "%s" is not palindrome",strsrc);getch();}You cite 2 examples of what you are looking for so why are you asking the question? The palindrome is word "radar" so obviously the program needs to extract individual word from the string in order to test. That is a simple thing to do. I am not going to do it for you because if I do you do not learn what you need to know.....i did separated string by for (i=0 arr!=arr.lnegth i++){if(arr[i]==" ")} then each string checked for this code but that not right as persistence employee said..


Can anybody do theseCan anybody do these WAP in qbasic to display 1 15913 999 2 1491625 100 3 50454035 0 4 1x2 plus 2x3 plus 3x4 plus 9x10 2 WAP to find the?

Research did not yield any reasonable solution to your question.


Wap to display palindrome no in c?

#include<stdio.h> #include<conio.h> #include<string.h> main() { char str[20],revstr[20]; int i,j=0,l,n; printf("enter a string"); scanf("%s",str); l=strlen(str); n=l-1; for(i=n;i>=0;i--) { revstr[j]=str[i]; j++; } revstr[j]='\0'; if((strcmp(str,revstr))==0) printf("palindrome"); else printf("not a palindrome"); getch(); }


How do you make my own wap chat site?

WAP sites are websites that are written in, or dynamically converted to, WML (Wireless Markup Language) and accessed via the WAP browser. A WAP chat site will allow you to chat with people from all around the world through the convenience of your WAP mobile device. With WAP Chatrooms you can make a place(s), where WAP users can chat in real time. You can set up a range of chat rooms so that your guests can find people who have similar interests.


How do i find out my schools wap code?

Contact the school network administrator for assistance.


What is a wap code?

Samsung s5233 wap code


How do i get wap on my phone?

To get wap on your mobile phone, simply get in touch with your service provider. The provider will give you instructions on how to get wap.


Wap to find the sum of series 1 plus 2 plus 3 plus - - - plus 100?

Sum of numbers from 1 to 100:(1+100) + (2+99) + (3+98) + (4+97) + ... + (49+52) + (50+51) =50 pairs, each pair adds up to 101= (50 x 101)= 5,050


What is the full form of wap?

WAP is Wireless Application Protocol


Csl i-250 cannot send a picture message and cant find a setting?

wap setting


Wap that can find the reverse of the 012?

int main (void) { puts ("210"); return 0; }


What are the feature of WAP?

What are the feature of WAP?"