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
If a base class declares a function to be virtual, and a derived class does not use the term virtual when overriding that class, is it still virtual when inherited by a third-generation class?
Write a program using display() function which takes two arguments.
Tell me what are static member functions?
Define basic type of variable used for a different condition in C++?
Explain differences between alloc() and free()?
Explain terminate() and unexpected() function?
What is searching? Explain linear and binary search.
What does getch() do according to the ANSI C++ standard a) Reads in a character b) Checks the keyboard buffer c) Nothing in particular (Its not defined there)
What is dev c++ used for?
what is Member Functions in Classes?
What is a set in c++?
What is abstraction with real time example?
What is the word you will use when defining a function in base class to allow this function to be a polimorphic function?
What is a constant reference?
What is istream c++?