current position:Home>How does the StrCmp function compare string sizes? What is the method

How does the StrCmp function compare string sizes? What is the method

2022-02-02 19:41:02 CSDN Q & A

strcmp("box","boss") The value of is ?




Refer to the answer 1:

The first string is larger than the second return 1, Equal to return to 0, Less than return -1
x > s
return 1




Refer to the answer 2:

copyright notice
author[CSDN Q & A],Please bring the original link to reprint, thank you.
https://en.primo.wiki/2022/02/202202021941013665.html

Random recommended