Question: Consider two strings: string1 and string2. (a) Write high-level code for a function called concat that concatenates (joins together) the two strings: void concat(char string1[],
Consider two strings: string1 and string2.
(a) Write high-level code for a function called concat that concatenates (joins together) the two strings: void concat(char string1[], char string2[], char stringconcat[]). The function does not return a value. It concatenates string1 and string2 and places the resulting string in stringconcat. You may assume that the character array stringconcat is large enough to accommodate the concatenated string.
(b) Convert the function from part (a) into MIPS assembly language.
Step by Step Solution
3.41 Rating (167 Votes )
There are 3 Steps involved in it
a b void concatchar string1 char string2 char ... View full answer
Get step-by-step solutions from verified subject matter experts
