#include <iostream> using namespace std; // define void foo(int x) -> prints "int overload" void foo(int x){ cout<<"int overload"<<endl; } // define void foo(int* p) -> prints "int* overload" void foo(int* p){ cout<<"int* overload"; } int main() { foo(0); foo(nullptr); return 0; }
Test Cases
Test Results
Input
Expected Output
int overload int* overload