Why Does C++ Allow Arithmetic on Null Pointers?

My last two notes discussed a subtle language-design issue that simplifies programmers' lives in ways that they often don't suspect. This theme seems useful, so I'll continue it.


May 24, 2012
URL:http://www.drdobbs.com/cpp/why-does-c-allow-arithmetic-on-null-poin/240001022

Terms of Service | Privacy Statement | Copyright © 2024 UBM Tech, All rights reserved.