Question: Given: void stringCopy(char *destStr, char *srcStr) { This function copies the contents of a string whose address is given by the pointer *srcStr to the

Given: void stringCopy(char *destStr, char *srcStr) { This function copies the contents of a string whose address is given by the pointer *srcStr to the string whose address is given by the pointer *destStr. Note that the function should never try to copy more than MAX_STR_LEN characters Part of the main() code is given: int main() { char string1[MAX_STR_LEN]="To see a world in a grain of sand,"; char string2[MAX_STR_LEN]="And a heaven in a wild flower."; int len1,len2; len1=0; len2=0; printf("%s ",string1); printf("%s ",string2); printf("%s ",string2); return 0; } pls help

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!