Quantcast
Channel: User Peter - Reinstate Monica - Stack Overflow
Viewing all articles
Browse latest Browse all 223

Comment by Peter - Reinstate Monica on Complicated declarations in C

$
0
0
One reason pointers to arrays are not very useful is that such code (like the function here) can only handle arrays of that specific length. That's the underlying motivation for the adjustment of array arguments to simple element pointers in the common core C and C++: That way, arrays of any length can be handled by the same function. Addresses (or references) of arrays of specific length become more useful in C++ where the array length can be a template parameter.

Viewing all articles
Browse latest Browse all 223

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>