Question: Task 2 : Run the following code ready for string functions. Use one function at a time and observe the output . 2 . 1
Task : Run the following code ready for string functions. Use one function at a time and observe the output What is the purpose of the strcpy function in this code? What would be the result if we uncommented the line strcpyba; Explain If we uncommented the line strncpya b; what would be the value of string a after executing that line? Describe the functionality of the strcat function. What would be the result if we uncommented the line strcatab; Explain what happens when we use the strncat function. If we uncommented the line strncatab; what would be the value of string a after executing that line? What is the purpose of the strlen function? What would be the value of x if we uncommented the line xstrlena;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
