Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - Is pointer comparison an address comparison?
Is pointer comparison an address comparison?
The value of p refers to the address of the element, which is naturally the address.

But generally, only pointers pointing to the same array will compare sizes with each other, or add and subtract, otherwise it is meaningless.

Same array:

P 1==p2 points to the same position.

p 1 & gt; P2 p 1 is in the high address position.

int a[ 10],* p = a; P points to a[0], p+ 1 points to a[ 1], ...

This is what you put on it. P

int argc,char *argv[]

Char *argv[] refers to an array whose size is int argc and the number of elements in the group.

As for what you said about entering proc ..., one * * four, the argc value is 4 strlen () is to calculate the length of characters, starting with the second element argv 1, and finally n is 7.

The last one doesn't know

There is one last one.