Unformatted text preview: arguments to the function using registers $a0 and $a1 respectively and the function will return the number of uppercase and number of lowercase letters in registers $v0 and $v1. Also, write a short main program that i. dynamically allocates memory for storing a string of 16 characters (including the null character), ii. prompts the user to enter a string iii. stores the string entered by the user into the allocated memory iv. calls the Scan function to count and return the number of uppercase and number of lowercase letters in the string entered by the user v. prints the number of uppercase and lowercase letters as returned by the Scan function on screen....
View Full Document
- Spring '08
- Letter case, null character, Lower case, allocated memory, WebCT Assignment Tool