, I print the b in the function of each element, no problem, why there is no way to output in the main function?CodePudding user response:
The return value of a function is int, it is an integer,CodePudding user response:
I think [b] was released at the end of the sub function, to the pointer to the array does not exist