write program for palindrome
Answer Posted / bala murali
#include<stdio.h>
#include<conio.h>
main()
{
char s1,s2;
printf("enter a string:");
gets(s1);
strcpy(s2,s1);
strrev(s2);
if(strcmp(s1,s2))
printf("palindrome:");
else
printf("not a palindrome:");
getch();
}
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
Is java easier than c++?
What is general form of pure virtual function? Explain?
What is meant by forward referencing and when should it be used?
What are mutator methods in c++?
What are the data types in c++?
What are punctuators in c++?
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 the need of a destructor?
How are the features of c++ different from c?
What is the outcome of cout< a) 16 b) 17 c) 16.5
Assume an array of structure is in order by studentID field of the record, where student IDs go from 101 to 500. Write the most efficient pseudocode algorithm you can to find the record with a specific studentID if every single student ID from 101 to 500 is used and the array has 400 elements. Write the most efficient pseudocode algorithm you can to find a record with a studentID near the end of the IDs, say in the range from 450 to 500, if not every single student ID in the range of 101 to 500 is used and the array size is only 300
How we can differentiate between a pre and post increment operators during overloading?
Tell me an example where stacks are useful?
what is VOID?
What are the differences between the function prototype and the function defi-nition?