Int main ()
{
Char a []="Hello!" ;
Char * p=a;
While (p{
Printf (" % s \ n ", + + p).
}
return 0;
}
This string of code don't understand why the array name can also be judgment cycle of expression?
CodePudding user response:
Array is the address of the first array, address can be calculated, and a + 2 represents a first address + 2 bytes (char types) of the length of the addressCodePudding user response:
pLlo!
CodePudding user response:
Array can be as the first address of the array, which is a number, the address for addition and subtraction,CodePudding user response:
An array is the address of the first array, like char * p=a; , the first address of the value is saved to the p,