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
Is c++ low level?
Can we overload operator in c++?
What is struct c++?
What flag means?
What does asterisk mean in c++?
What are the two main components of c++?
What is malloc in c++?
How is c++ used in the real world?
What are vtable and vptr?
Explain the difference between new() and malloc() in c++?
What is the use of volatile variable?
What is the size of a vector?
What is else if syntax?
How can you say that a template is better than a base class?
Ask to write virtual base class code?