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 --_-!