Why reference to an array doesn't work until we use a pointer? – stackoverflow.com

This works very well... int a[5] = {1,2,3,4,5}, int *p = a; int *& ref = p; But why this doesn't works?? int a[5] = {1,2,3,4,5}; int*& ref = a; Both a and p are pointers and have same ...

from Hot Questions - Stack Exchange OnStackOverflow
via Blogspot

Share this

Artikel Terkait

0 Comment to "Why reference to an array doesn't work until we use a pointer? – stackoverflow.com"