write program for palindrome
Answer Posted / nithya
#include<stdio.h>
#include<string.h>
main()
{
char str1[35];
char str2[35];
clrscr();
printf("Enter the string of words to check for
Palindrome or Not");
scanf("%s",&str1);
strcpy(str2,str1);
strrev(str2);
if(strcmp(str1,str2)==0)
printf("The entered string of words %s are
palindrome",str1);
else
printf("The entered string of words %s are not
palindrome",str1);
getch();
}
| Is This Answer Correct ? | 3 Yes | 2 No |
Post New Answer View All Answers
Difference between delete and free.
If I is an integer variable, which is faster ++i or i++?
Is c++ the most powerful language?
Write a Program for dynamically intialize a 2 dimentional array. Eg:5x20, accept strings and check for vowels and display the no.finally free the space allocated .
what does the following statement mean? int (*a)[4]
What is the difference between #import and #include?
Is it possible for a member function to use delete this?
What is a block in c++?
How is static data member similar to a global variable?
What is a c++ object?
Explain the properties and principles of oop.
I was a c++ code and was asked to find out the bug in that. The bug was that he declared an object locally in a function and tried to return the pointer to that object. Since the object is local to the function, it no more exists after returning from the function. The pointer, therefore, is invalid outside.
What is the this pointer?
Is recursion allowed in inline functions?
Can we declare a base-class destructor as virtual?