write program for palindrome
Answer Posted / sat
#include<stdio.h>
#include<string.h>
void main()
{
char a[40],b[40];
printf("\n Enter String:= ");
gets(a);
strcpy(b,a);
strrev(b);
if(strcmp(b,a)==0)
printf("\n Entered string \"%s\" ispalindrome",b);
else
printf("\n Entered string \"%s\" is not palindrome",a);
}
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Differences between private, protected and public and give examples.
Can we change the basic meaning of an operator in c++?
Write a program using GUI concept for the scheduling algorithms in Operating system like SJF,FCFS etc..
What are iterators in c++?
What jobs can you get with a c++ certification?
What are function prototypes?
A mXn matrix is given and rows and column are sorted as shown below.Write a function that search a desired entered no in the matrix .with minimum complexity 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
Is c# written in c++?
what is upcasting in C++?
What is object file? How can you access object file?
what is oops and list its features in c++?
Which is the best c++ compiler?
Is dev c++ free?
Can you write a function similar to printf()?
What is a list c++?