Time:10-29
CodePudding user response:
output is the ASCII characters, if you change to cout<(char) (* * p + 1); Is the character
Quote: refer to 1st floor Italink response: output is the ASCII characters, if you change to cout<(char) (* * p + 1); Is the character This is the use of coercion?
why some output is a digital, but some output is ascll code?
Quote: reference 4 floor Lv. 100 response: why some output is digital, and some of the output is ascll code? A typo, is letter...
why some output is digital, and some of the output is ascll code?
that why is digital, because Char and int addition, the result is an int, coutThis sentence is Cout. Operator<(p); Cout have multiple overloaded operator, when p is char * nature calls to cout. Operator (char *) output string When cout<* p + 1, because the char + int result is int so call the cout. OperatorAnd the secondary pointer, can be matched to the opeartor (void *) output address,
Page link:https//www.codepudding.com/Backend/73876.html