What is inlining, and when might it be beneficial? Why, in the following code, is the compiler unable to move the call to strlen out of the loop? void upper(char *s) { for (long i = 0; i = 'a' && s[i]



What is inlining, and when might it be beneficial?




Why, in the following code, is the compiler unable to move the call to strlen out of the loop?



          void upper(char *s) {



               for (long i = 0; i < strlen(s);="" i++)="">



                    if (s[i] >= 'a' && s[i] <=>



                         s[i] += ('Z' - 'z');



               }



          }



Jun 10, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here