write program for palindrome
Answer Posted / md. arif shahmim
#include<stdio.h>
#include<string.h>
#define size 26
void main()
{
char strsrc[size];
char strtmp[size];
clrscr();
printf("\n Enter String:= "); gets(strsrc);
strcpy(strtmp,strsrc);
strrev(strtmp);
if(strcmp(strsrc,strtmp)==0)
printf("\n Entered string \"%s\" ispalindrome",strsrc);
else
printf("\n Entered string \"%s\" is not
palindrome",strsrc);
getch();
}
| Is This Answer Correct ? | 16 Yes | 23 No |
Post New Answer View All Answers
Describe delete operator?
write a programme to get a character and thier ASCII value
What is vector processing?
Do you know about C++ 11 standard?
Write a program which is required to process the time of a clock in hours and minutes, entered from the keyboard. With this program, there are two requirements for any data entered by a user: 1. The data must be of the correct type (in this case, two ints). 2. The data must be in the correct range: this means that, for the minutes, negative numbers and any number above 59 must be rejected; for the hours, negative numbers and any number above 23 must be rejected. Output error message for invalid data input. Output the time one and a half hour after the time input. i.e. Hour: 22 Min: 32 One and a half hour after 22:32 is 00:02
What is encapsulation in c++?
What do you mean by volatile and mutable keywords used in c++?
Is c++ faster than c?
When one must use recursion function? Mention what happens when recursion functions are declared inline?
What is name hiding in c++?
What are the extraction and insertion operators in c++?
Explain deep copy and a shallow copy?
What is virtual destructor ans explain its use?
Can we use this pointer inside static member function?
What is ios in c++?