write program for palindrome
Answer Posted / md. arif shahmim
#include<stdio.h>
#include<string.h>
#define size 26
void main()
{
char strsrc[size];
char strtmp[size];
clrscr();
printf("\n Enter String:= "); gets(strsrc);
strcpy(strtmp,strsrc);
strrev(strtmp);
if(strcmp(strsrc,strtmp)==0)
printf("\n Entered string \"%s\" ispalindrome",strsrc);
else
printf("\n Entered string \"%s\" is not
palindrome",strsrc);
getch();
}
Is This Answer Correct ? | 16 Yes | 23 No |
Post New Answer View All Answers
what is VOID?
Would you rather wait for quicksort, linear search, or bubble sort on a 200000 element array? (Or go to lunch...) a) Quicksort b) Linear Search c) Bubble Sort
Does a derived class inherit or doesn't inherit?
How to implement is-a and has-a class relationships?
What is endianness?
What is the use of 'using' declaration in c++?
What do the keywords volatile and mean mutable?
What does n mean in c++?
What is else if syntax?
What do you mean by function and operator overloading in c++?
What is the latest c++ version?
What is c++ code?
How do you instruct your compiler to print the contents of the intermediate file showing the effects of the preprocessor?
What are associate containers?
what you know about c++?