What is the difference between an int* p
and an int *p
declaration?
There is no difference.
It's a matter of notation, not semantics. The second is less misleading, because
int *a, b;
is clearly declaring an int*
and an int
, whereas
int* a, b;
looks as if it's declaring two pointers, when it's really doing the same thing as above.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With