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
What is difference between n and endl in c++?
What is c++ vb?
int age=35; if(age>80) {Console.WriteLine("Boy you are old");} else {Console.WrieLine("That is a good age");}
Define a conversion constructor?
Why do we use string in c++?
What are the rules about using an underscore in a c++ identifier?
What is a static member?
What is a buffer c++?
Why can templates only be implemented in the header file?
What are the extraction and insertion operators in c++?
Write about the members that a derived class can add?
Which one between if-else and switch is more efficient?
Why do we need templates?
Why is c++ still used?
What are the 3 levels of programming languages?