Choose Category
#include <iostream> #define assert using namespace std; class ForgetCode { public: void display(int* a) { assert (a!=NULL); cout<<a; } }; int main () { ForgetCode f; int x=10; int *y = NULL; int *z = NULL; y=&x; f.display (y); f.display(z); return 0; }