Suppose I have this code. Your basic \"if the caller doesn\'t provide a value, calculate value\" scenario.
void fun(const char* ptr = NULL) { if (ptr==NULL) {
1?
I can't imagine anyone allocating you memory with that address.