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
What is the use of lambda in c++?
Define what is constructor?
Explain the concept of dynamic allocation of memory?
What is late binding c++?
What is a flag in c++?
What is wrapper class in c++?
What is object in c++ example?
What is the use of structure in c++?
Why is c++ still best?
True or false, if you keep incrementing a variable, it will become negative a) True b) False c) It depends
Why is main function important?
Why the usage of pointers in C++ is not recommended ?
Why is c++ difficult?
When does a name clash occur in c++?
Write a program to find the Fibonacci series recursively.