Home > Back-end >  Bosses, there is a problem I never understand, for advice
Bosses, there is a problem I never understand, for advice

Time:10-27

Int * a=& amp; b;
And
Int * a=b;
And
A=& amp; b;
What is the difference between these, from the aspects of functional

CodePudding user response:

Is not a pointer variable assignment

CodePudding user response:

Int * a=& amp; b;
Let the pointer pointing to b address
Int * a=b;
Pointer b assigned to a pointer
The third definition, first assignment again, just like the first

CodePudding user response:

No difference, c + + for a lot of ways, so don't let a person in a stuck on the road, how comfortable how to use