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 a flag in c++?
In inline " expression passed as argument are evalauated once " while in macro "in some cases expression passed as argument are evaluated more than once " --> i am not getting it plz help to make me understand....
What is difference between array and vector in c++?
What is the use of cmath in c++?
What is singleton class in c++?
C is to C++ as 1 is to a) What the heck b) 2 c) 10
Will c++ be replaced?
Describe linked list using C++ with an example.
What is the best c++ compiler for windows 10?
What is the use of lambda in c++?
What is function overloading c++?
give me an example for testing a program showing the test path .show how the test is important and complex.
What c++ is used for?
What are the advantages of c++ over c?
What is meant by iomanip in c++?