Question: C problem 2. For the following function definition: int fn1(char strl)M int i-0; while(strli] !o') return i; a. Use the numbers (i, i, li, and
C problem 2. For the following function definition: int fn1(char strl)M int i-0; while(strli] !o') return i; a. Use the numbers (i, i, li, and iv) to identify/label the following parts of the fn1 definition above. i. Function name ii. Return type ili. Return value iv. Function parameters b. Given the following main function that calls fn1, determine the output. int main ) Output: printf("%d", fn1("Peace"); printf("%d", fn1("Happy"); printf("%d", fn1("Thanksgiving"); printf("%d", fn 1(""); return 0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
