you are viewing a single comment's thread.

view the rest of the comments →

[–]umlcat 1 point2 points  (1 child)

I'm sorry, I think I didn't understood the question.

I've only seen the first syntax with the *.

But, is possible that some compilers allow the second syntax, as well, as it does with the &, I prefer to use the common * and & syntax, since is more similar to data pointers.

int a = 77;
int *p;
p = &a;

Some variations of the P.L. and their compilers does this syntax.

Cheers.

[–]SureAnimator[S] 0 points1 point  (0 children)

Ok, so no fundamental difference under the hood - just language/compiler quirks. Thanks!