CodePudding user response:
The swap function parameters of & amp; To get rid ofCodePudding user response:
I don't know what is the original poster with compiler model, as the main body of the building Lord shine I CB2009 code compilation, does not appear in the figure error, operation can get expected results (the exchange of ap and bp pointing),CodePudding user response:
Char * ap=(char *) "hello";CodePudding user response:
In front of the char * ap added a const canOr define ap for char array