Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Write a function (including body) called lowercase that accepts two character ar

ID: 3846957 • Letter: W

Question

Write a function (including body) called lowercase that accepts two character arguments, a and b. This function returns the value 1 if both arguments are uppercase letters of the alphabet, and returns the value - 1 otherwise. Note that the decimal ASCII code for character A' is 65, and the decimal ASCII code for character 'a' is 97 The memory map on the right shows address starting at 5160 and their contents. The variable ip is declared as int *ip and is pointing to the address of 5208. What are values of the following expressions? ip = &ip; = *ip = *ip+1 = ip+1 = *(ip+1) =

Explanation / Answer

#include void upper_string(char []); int main() { char string[100]; printf("Enter a string to convert it into upper case "); gets(string); upper_string(string); printf("Entered string in upper case is "%s" ", string); return 0; } void upper_string(char s[]) { int c = 0; while (s[c] != '') { if (s[c] >= 'a' && s[c]
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote