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










Related topics

Please use contact page in this website if you find anything incorrect or you want to share more information about the topic discussed above.