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 are manipulators used for?
Why do you use the namespace feature?
How c functions prevents rework and therefore saves the programers time as wel as length of the code ?
Can java be faster than c++?
What are associate containers?
Difference between Abstraction and encapsulation in C++?
How can you quickly find the number of elements stored in a static array?
Why can’t you call invariants() as the first line of your constructor?
Is c++ a good beginners programming language?
Is c++ a good first language to learn?
What is atoi in c++?
How can you differentiate between inheritance and implementation in c++?
Define upcasting.
Which software is used to run c++ program?
What is the best way to take screenshots of a window with c++ in windows?