All submissions

Overload Resolution Trap

#include<iostream>
using namespace std;
void foo(int x)
{
    cout<<"int overload"<<endl;
}

void foo(int * p)
{
    cout<<"int* overload"<<endl;
}

int main()
{
    foo(nullptr);
    cout<<3.3 +NULL;
    return 0;
}
Loading...

Input

Expected Output

int* overload 3.3