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


Please Help Members By Posting Answers For Below Questions

Write a recursive program to calculate factorial in c++.

810


What type of question are asked in GE code writing test based on c++ data structures and pointers?

3700


What are vectors used for in c++?

801


Mention the purpose of istream class?

817


Why are pointers used?

745


Name four predefined macros.

801


What number of digits that can be accuratly stored in a float (based on the IEEE Standard 754)? a) 6 b) 38 c) An unlimited number

1002


What is different in C++, compare with unix?

800


Will c++ be replaced?

814


Can a Structure contain a Pointer to itself?

793


Are c and c++ different?

722


Show the declaration for a static member variable.

721


What is the use of object in c++?

813


Explain what are mutator methods in c++?

758


What are the two types of comments?

755