Question: In ARM Assembly Language , I need to write an implementation of the function strlengths: int strlengths(const char **strings, int cnt); This function accepts a
In ARM Assembly Language ,
I need to write an implementation of the function strlengths:
int strlengths(const char **strings, int cnt);This function accepts a pointer to an array of C string pointers. The parameter cnt is how many strings are in the array. The function returns the total of the lengths of all strings in the array. For example, supposed the function is passed this array and size=4:
const char *strings1[] = {\"Bird\", \"Car\", \"Plane\", \"Bug\"};The function would return 15, which is the sum of the lengths of the four strings (4+3+5+3).
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
