3 ms·
> I always thought [] was just syntactic sugar over a regular pointer, but seems like I was wrong. It depends on the context. When used in function arguments,
by jcelerier 8y ago
> I always thought [] was just syntactic sugar over a regular pointer, but seems like I was wrong.
It depends on the context.
When used in function arguments, yes, it's the same.
When used during the declaration of a variable, it's entirely different.