write program for palindrome
Answer Posted / nithya
#include<stdio.h>
#include<string.h>
main()
{
char str1[35];
char str2[35];
clrscr();
printf("Enter the string of words to check for
Palindrome or Not");
scanf("%s",&str1);
strcpy(str2,str1);
strrev(str2);
if(strcmp(str1,str2)==0)
printf("The entered string of words %s are
palindrome",str1);
else
printf("The entered string of words %s are not
palindrome",str1);
getch();
}
| Is This Answer Correct ? | 3 Yes | 2 No |
Post New Answer View All Answers
Which is not an ANSII C++ function a) sin() b) tmpnam() c) kbhit()
Is c++ the hardest language?
What is a binary file? List the merits and demerits of the binary file usagein C++.
What is a wchar_t in c++?
How many ways can a variable be initialized into in C++?
What is srand c++?
What c++ library is string in?
How to defines the function in c++?
Should I learn c or c++ or c#?
What are proxy objects in c++?
What is Destructor in C++?
What is a virtual destructor? Explain the use of it?
Implement stack operations with pointers with appropriate exception checks.
What is general format for a prototype?
What is #include cstdlib in c++?