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
Write a recursive program to calculate factorial in c++.
What type of question are asked in GE code writing test based on c++ data structures and pointers?
What are vectors used for in c++?
Mention the purpose of istream class?
Why are pointers used?
Name four predefined macros.
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
What is different in C++, compare with unix?
Will c++ be replaced?
Can a Structure contain a Pointer to itself?
Are c and c++ different?
Show the declaration for a static member variable.
What is the use of object in c++?
Explain what are mutator methods in c++?
What are the two types of comments?