Search your topic here

Implementation of pointers in C++

PRINIPLES OF PROGRAMMING LANGUAGES
PRACT. Implementation of pointers in C++.

#include <iostream>
using namespace std;

int main () {
   int  age = 20; 
   int  *a;       

   a = &age;     

   cout << "Address of Age variable  ";
   cout << a << endl;

   cout << "Age = ";
   cout << *a << endl;

   return 0;
}

LEAVE A REPLY