write program for palindrome
Answer Posted / bala murali
#include<stdio.h>
#include<conio.h>
main()
{
char s1,s2;
printf("enter a string:");
gets(s1);
strcpy(s2,s1);
strrev(s2);
if(strcmp(s1,s2))
printf("palindrome:");
else
printf("not a palindrome:");
getch();
}
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
I want to write a C++ language program that: 1. Reads in the size of a square from the screen; 2. Prints a hollow square of that size out of “-“, “|” and blanks on screen; 3. Prints the same hollow square onto a text file. The program should work for squares of all side sizes between 1 and 20.
What are static member functions?
What is the use of lambda in c++?
What language does google use?
What are libraries in c++?
Is turbo c++ free?
What are guid?
State the difference between delete and delete[].
What is c++ hiding?
What is a virtual destructor? Explain the use of it?
What parameter does the constructor to an ofstream object take?
Why can templates only be implemented in the header file?
describe private access specifiers?
What is the this pointer?
What's the order in which the local objects are destructed?