#include <iostream>
using namespace std;
void foo(int x) {
cout << "int overload\n";
}
void foo(int* p) {
cout << "int* overload\n";
}
int main() {
foo(nullptr); // nullptr: actually a empty pointer
cout << 3.3 + NULL; // NULL: macro defined as 0
return 0;
}
Solution Details
In simple words:
Significance for Embedded Developers
Input
Expected Output
int* overload 3.3