write program for palindrome
Answer Posted / darren chang
bool palind(string input)
{
int j=input.length()-1;
int i=0;
while(i<j)
{
if(input[i]!=input[j])
return false;
i++;
j--;
}
return true;
}
| Is This Answer Correct ? | 23 Yes | 24 No |
Post New Answer View All Answers
I want explanation for this assignment: how to connect mysql database using c/c++,please explain this detailly?
Is java based off c++?
How delete [] is different from delete?
Is swift faster than c++?
Do you know what are static and dynamic type checking?
Can notepad ++ run c++?
Define pointers?
Tell me difference between constant pointer and pointer to a constant.
How to allocate memory dynamically for a reference?
What are the 2 main types of data structures?
Explain how the virtual base class is different from the conventional base classes of the opps.
What is dynamic and static typing?
Briefly describe a B+ tree. What is bulk loading in it?
What is a modifier in c++?
What is c++ stringstream?