What's the difference between the types of bar1 and bar2?
bar1
bar2
int foo = 10; auto bar1 = &foo; auto *bar2 = &foo;
If both bar1 and bar2 are int*, does it makes sense to write pointer declarator (*) in the bar2 declaration?
int*
*
Aucun commentaire:
Enregistrer un commentaire