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 parameter does the constructor to an ofstream object take?
What is the word you will use when defining a function in base class to allow this function to be a polimorphic function?
What is type of 'this' pointer? Explain when it is get created?
Does c++ have a hash table?
Define pre-condition and post-condition to a member function in c++?
Explain selection sorting. Also write an example.
Explain terminate() function?
How would you obtain segment and offset addresses from a far address of a memory location?
What are the new features that iso/ansi c++ has added to original c++ specifications?
What is a catch statement?
What is meant by a delegate?
What information can an exception contain?
When you overload member functions, in what ways must they differ?
Can you please explain the difference between overloading and overriding?
What is code reusability in c++?