2. #include 3.4. int main ()5. {char str1[20] = "Good ";7.6.char str2[20] = "Morning";char str3[20];8.9.10. strepy(str3, str1);11. printf("After strepy(str3, str1) , str3 = %s\n", str3...


3.4 The following questions are based on C program in the Figure 1.<br>1. #include<stdio.h><br>2. #include<string.h><br>3.<br>4. int main ()<br>5. {<br>char str1[20] =

Extracted text: 3.4 The following questions are based on C program in the Figure 1. 1. #include 2. #include 3. 4. int main () 5. { char str1[20] = "Good "; 7. 6. char str2[20] = "Morning"; char str3[20]; 8. 9. 10. strepy(str3, str1); 11. printf("After strepy(str3, str1) , str3 = %s\n", str3 ); 12. 13. strcat(strl, str2); 14. printf("After strcat(str1, str2) , strl = %s\n", str1 ); 15. 16. strcat( str3, str1); 17. puts(str3); 18. 19. return 0; 20. } Figurel a) Trace the output of the program b) Suppose you want to measure and display the length of strl and str3 BEFORE and AFTER the string manipulation at line 13 and line 16. Write C statements to execute the task and state which line those C statements should be placed

Jun 11, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here