Gave the Pstr string constant pointer assignment, then can use Pstr [I] to string constants "Hello World each character a visit?
CodePudding user response:
String constants can be read, but just read only, can't write,The pStr [1]='1'; This is not possible,
So, access to each character is no problem
CodePudding user response:
# pragma comment (would, "/SECTION: rdata, RW)
//add this sentence can make constant area to write, the consequence is proud!