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
Why can’t you call invariants() as the first line of your constructor?
What is the difference between new() and malloc()?
Write a program which employs Recursion
What are activex and ole?
What are literals in C++?
Is vector a class in c++?
How did c++ get its name?
Discuss the effects occur, after an exception thrown by a member function is unspecified by an exception specification?
Explain what is oop?
Explain explicit container.
What flag means?
When are exception objects created?
Explain the difference between class and struct in c++?
Do you know about latest advancements in C++ ?
What is the header file for setw?