C++ structure pointer

We have already learned that there are pointers to built-in data types such as int, char, double, etc.

Like we have a pointer to int, we can also have pointers to the user-defined data types such as structure.


The pointer that stores the address of the structure variable is known as a structure pointer.


Declaring structure pointer

The basic syntax for declaring a structure pointer is given below:

Get hands-on with 1400+ tech skills courses.