void fun(int*); // #1 void fun(int const*); //#2 int main(){ int* ptr = nullptr; fun(ptr); }
Consider