Question: Write a C function that manually performs strcmp: Write a function, named my_strcmp, that receives two strings and performs a string comparison. Assuming strings A
Write a C function that manually performs strcmp: Write a function, named my_strcmp, that receives two strings and performs a string comparison. Assuming strings A and B of the same length, the function will return the following values: -1 if A precedes B alphabetically 0 if A is the same string as B 1 if A follows B alphabetically
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
