#include <iostream> using namespace std; void foo(int x) { cout << "int overload\n"; } void foo(int* p) { cout << "int* overload\n"; } int main() { foo(0); foo(nullptr); return 0; }
Explanation & Logic Summary:
0
foo(int)
nullptr
std::nullptr_t
foo(int*)
NULL
Firmware Relevance & Real-World Context:
Test Cases
Test Results
Input
Expected Output
int overload int* overload