3 ms·
Same goes for pointers. int *foo = &bar; *foo = 1; As far as syntax goes, tying the pointer to the identifier doesn't make sense to me, at least. Poin
by glouwbug 4y ago
Same goes for pointers.
int *foo = &bar;
*foo = 1;
As far as syntax goes, tying the pointer to the identifier doesn't make sense to me, at least. Pointers associated with types makes much more sense:
int* foo = &bar;
C++ thinks so too.