Home  >  Article  >  Backend Development  >  strcmp();函数是比较字符串的值,还是比较字符串的长度?

strcmp();函数是比较字符串的值,还是比较字符串的长度?

WBOY
WBOYOriginal
2016-06-20 12:54:591969browse

来,告诉我吧,我承认自己就是懒得去试。


回复讨论(解决方案)

比较值,当然要是长度不一样就不必比较值了

比较值,如果长度不同,会不不足的部分以空字符作比较。

比较值,当然要是长度不一样就不必比较值了



比较值,如果长度不同,会不不足的部分以空字符作比较。



感谢~
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn