Some basic issues for C language programming

xiaoxiao2021-03-06  73

1. For example, in the following program, the operation is not performed after judging * S1 and * S2, and the * S1 executed after equal, it is already the next character, so do not use as a judgment. Whether it is equal, but to be separate as a statement.

INT STRCMP1 (Char * S1, Char * S2) {while (* S1 == * S2 ) && * S1); Return (* S1- * S2);}

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

New Post(0)