Can any one explain what algorithm used in strcmp to compare two string in C programming ?
I didnt understand the return value from this, It uses any algorithm like ‘Levenstien algorithm‘ to find out distance between two string…
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The GNU implementation of the standard C library, glibc, is open source and you can just read strcmp.c if you are curious. There is not much to it. Here it is: