I am remembering this before looking at a second question, but failed to answer.
I do not remember the way that they are the appropriate method to indicate what is the indicator:
type * example; or:
type * example; Although However, I know that in most cases both will be compiled, I believe there are some examples where this is important, possibly several variables of the same type of line It is related to declaration, and therefore more understanding than the other.
This is just one thing that you like how to read it. / P>
The reason for this is that some people did this:
type * example; This is because it says that only example is an indicator because if you have a list of variables: int * a, b, C;
There is only one indicator, so it is so easy
int * a, b, c, * d;
While there are both A and D points, it does not really matter, it's about readability.
Other people like to be next to this type of thing, because (among other reasons) they consider it "an indicator in integer" and it seems that with the type, not the variable, not the variable.
Personally, I always
type * instance;
But it really depends on you, and your company / school code style guidelines.
Comments
Post a Comment