write program for palindrome
Answer Posted / ram thilak.p
#include<stdio.h>
#include<conio.h>
#include<string.h>
void main()
{
char a[20];
int c;
printf("\n\n\t Enter A String:");
scanf("%s",a);
c=strcmpi(strrev(a),a);
if(c==0)
{printf("\n %s is a Palindrome",a);}
else
{printf("\n %s is not a Palindrome",a);)
getch();
}
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What is abstract class in c++?
Write a function that swaps the values of two integers, using int* as the argument type?
What is a multimap c++?
What is a down cast?
What is the exit function in c++?
Ask to write virtual base class code?
What is name hiding in c++?
What is the two main roles of operating system?
What are manipulators in c++ with example?
What causes a runtime error c++?
Differentiate between late binding and early binding. What are the advantages of early binding?
Which software is best for programming?
How do you declare A pointer to function which receives an int pointer and returns a float pointer
What are the advantage of using register variables?
Which operator cannot be overloaded c++?