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
Explain the difference between class and struct in c++?
How can I improve my c++ skills?
What is stl containers in c++?
How do pointers work?
What is the average salary of a c++ programmer?
What are the data types in c++?
What are the differences between the function prototype and the function defi-nition?
How can you tell what shell you are running on unix system?
By using c++ with an example describe linked list?
What is the type of 'this' pointer?
What is the most useful programming language?
When there is a global variable and local variable with the same name, how will you access the global variable?
Show the declaration for a static function pointer.
Define pointers?
Why is it called c++?