title: Where should assert() be used in C resp. C++?
body: <p>What are the places we should use the <code>assert()</code> function specifically? If it's a situation like determining if an integer value is greater than zero or a pointer is null, we can simply use a private function to check this. In this kind of situation, where should we use <code>assert()</code> over a custom written check?</p>