I recently switched from java to c++ and was writing these two lines of code:
int* a;
int *b;
I'm wondering what the difference is between these two lines? I've tried searching online but this only talks about the difference between int (*a)
and int* a
. Or is int *a
and int (*a)
the same?
Could someone please clarify this for me?