write program for palindrome
Answer Posted / ram srikanth
#include<stdio.h>
#include<conio.h>
#include<string.h>
main()
{
char n[50],m[50];
clrscr();
printf("Enter a string");
scanf("%s",n);
strcpy(m,n);
strrev(m);
if (strcpy(n,m)==0) printf("Palindrome");
else printf("not a palindrome");
getch();
}
| Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
Is c++ a programming language?
Can a constructor return a value?
what is VOID?
What is the keyword auto for?
What do you mean by friend class & friend function in c++?
What happens when the extern "c" char func (char*,waste) executes?
what is C++ objects?
What is the difference between C and CPP?
Write a program to find the reverse Fibonacci series starting from N.
If dog is a friend of boy, is boy a friend of dog?
What are c++ redistributables?
What is the difference between passing by reference and passing a reference?
What is microsoft c++ redistributable?
How long will it take to learn programming?
How do I run c++?