1 2 3 4 5 6 7 8 9 10 11 12
#include <iostream> using namespace std; int main() { int *NumRecPrinted = NULL; int no_of_records = 10; NumRecPrinted = (int*)no_of_records; // <<< Doesn't give value of NumRecPrinted cout << "NumRecPrinted!" << NumRecPrinted; return 0; }
1
NumRecPrinted!0xa