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
an operation between an integer and real always yeilds a) integer result b) real result c) float result
Who made c++?
Explain one-definition rule (odr).
What does catch(…) mean?
Write a short code using c++ to print out all odd number from 1 to 100 using a for loop
Why is polymorphism useful?
Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the maximum number of concurrent threads that the InnoDB plug-in can create
Write about all the implicit member functions of a class?
What is searching?
What is the type of 'this' pointer? When does it get created?
What is the difference between while and do while loop? Explain with examples.
What is wrapper class in c++?
What is flush c++?
Name the operators that cannot be overloaded in C++?
What data structure is fastest, on average, for retrieving data: a) Binary Tree b) Hash Table c) Stack