write program for palindrome
Answer Posted / anirban
#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 ? | 12 Yes | 13 No |
Post New Answer View All Answers
What is the type of 'this' pointer?
If you push the numbers (in order) 1, 3, and 5 onto a stack, which pops out first a) 1 b) 5 c) 3
What does extern mean in a function declaration in c++?
Explain about vectors in c ++?
What operators can you overload in c++?
List the issue that the auto_ptr object handles?
What is decltype c++?
Explain the difference between c++ and java.
What is the difference between global variables and local variable
Which is best ide for c++?
What are the uses of static class data?
What is a stack? How it can be implemented?
What is enum class in c++?
In a function declaration what does extern means?
Does c++ have arraylist?