pointer to long value : long « Data Types « C++ Tutorial






#include <iostream>
using std::cout;
using std::endl;

int main() {
  long number = 50L;
  long* pnumber;
  pnumber = &number;
  cout << endl
       << "The value stored in the variable number is "
       << *pnumber
       << endl;
  return 0;
}
The value stored in the variable number is 50








2.12.long
2.12.1.pointer to long value
2.12.2.Use long as function parameter and return type
2.12.3.Cast int to long
2.12.4.Output pointer value using cout