write program for palindrome
Answer Posted / felix
#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 ? | 182 Yes | 97 No |
Post New Answer View All Answers
What is the use of pointer in c++ with example?
Explain bubble sorting.
what are the iterator and generic algorithms.
Is dev c++ a good compiler?
Distinguish between a # include and #define.
How can a struct in c++ differs from a struct in c?
What are references in c++? What is a local reference?
Write a Program to find the largest of 4 no using macros.
What is the best way to take screenshots of a window with c++ in windows?
What is the difference between containment and delegation?
What is object in c++ wikipedia?
What is encapsulation in c++?
What is c++ and its uses?
To what does “event-driven” refer?
Can a program run without main?