Question: I need help getting this c++ code translated into ARM assambly lenguage #include #include using namespace std; bool isPal( const string &str, int start, int
I need help getting this c++ code translated into ARM assambly lenguage #include#include using namespace std; bool isPal(const string &str, int start, int end) { if (start >= end) return true; if (str[start] != str[end]) return false; return isPal(str, ++start, --end); } int main() { string in; int len ; bool ans; getline(cin , in); len=in.length(); //cout< if(isPal(in , 0 , len-1)== false) cout<<"not pal"< if(isPal(in , 0 , len-1)== true) cout<<"pal"< return 0; }
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
