Quantcast
Channel: User HolyBlackCat - Stack Overflow
Viewing all articles
Browse latest Browse all 1351

Comment by HolyBlackCat on passing int (&array)[] to a function C++

$
0
0
@JaMiT "prevents passing in a null pointer" is a good point. Regarding having to check for null pointers, I believe this is a misconception. You don't have to check for null pointers either way, you can just crash. Some C standard library functions do this, there's nothing wrong with it.

Viewing all articles
Browse latest Browse all 1351


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