Question: Please explain lowing function should allocate space for a new string, copy the nd convert every string from the passed argument into the new string,

 Please explain lowing function should allocate space for a new string, Please explain

lowing function should allocate space for a new string, copy the nd convert every string from the passed argument into the new string, a lower-case character in the new string into an upper-case modify the original st character (do not ring). Fill-in the blanks and the body of the for0 loop: char* upcase char str)t char p; char* result; result, (char*) malloc( - strcpy( for( p-result; *p!-10': p++) / Fill-in 'A'-65, 'a' 97, 'Z 90, 'z' 122/ return result; d) Consider the code below. The upcase name0 function should convert the ith name to upper case by calling upcase by ref, which should in turn call upcase0. Complete the implementation of upcase.by_ref. You may not change any part of upcase name. void upcase_by_ref( char* n)/* Fill-in*/ void upcase.name(char* namesl, int i) t/* No not touch/ upcase,by_ref( &(names[i) )

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!