For the following code snippets why would I use one assignment vs another? thx
void addOne(int &x) { x +=1; } void (*inc)(int &x) = addOne;
Brevity, style. It's the same with using * when calling them.
*
Also note array vs &array[0].
array
&array[0]