C ++ help

xiaoxiao2021-03-06  82

Int strcm (const char * str3, const char * str4)

{

For (; * str3 == * STR4; STR3 , STR4 )

IF (! * STR3) --------- "

Return 0;

Return (* STR3- * STR4); ----------- "

}

I would like to ask: (! * Str3) Is it that the address of STR3 is not 0?

* STR3- * STR4 does not indicate the comparison of two character addresses? Otherwise how can two characters can be subtracted? ?

转载请注明原文地址:https://www.9cbs.com/read-107344.html

New Post(0)