A small mistake of a lot of attention

xiaoxiao2021-03-06  19

I saw a code today, thinking is very simple, I can't think of a mistake, I'm doing a mistake #include

INT fo (int * x, int * y, int z) // x pointer refers to the location of the Y pointer, the Y pointer points the next one, then Z self-add 1, see if there is no {* x = * y ; // * x = 4 corresponds to * x = * y; * Y ; if it is * x = * y, * y = 1; * x = * Y; Return ( z);} void main () {INT A = 3, B = 4, C = 5, D; D = FO (& A, & B, C); Printf ("% D,% D,% D,% D / N", A, B , C, D);

The result is 4, 4, 5, and then the beginning without paying attention * y and y * , the small place does not pay attention, accumulating more, I have trouble --_-!

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

New Post(0)