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
Explain about vectors in c ++?
What is a dll entry point?
Is there any difference between int [] a and int a [] in c++?
What are structures and unions?
What are the five basic elements of a c++ program?
What is the outcome of cout< a) 16 b) 17 c) 16.5
Explain public, protected, private in c++?
What is data type in c++?
Explain one method to process an entire string as one unit?
Is map thread safe c++?
What are manipulators in c++ with example?
What is a local reference?
Is c++ double?
What are c++ variables?
Which function cannot be overloaded c++?