[ create a new paste ] login | about

Link: http://codepad.org/0tFhrF9r    [ raw code | output | fork ]

C++, pasted on Feb 9:
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;
}


Output:
1
NumRecPrinted!0xa


Create a new paste based on this one


Comments: