C++ program to Structure with pointer
In this article, we will discuss tha concept of structure with pointer in C++ program.
We can use pointer with structure in C++ language.Pointers are an easy way to manipulate structure member by reference. To create a structure pointer, place an asterisk (*) infront of the structure pointer’s name.
Diclaration of structure pointer
struct_keyword struct_name *struct_pointer;
Syntax
The syntex of the structure pointer
Example
The example of the structure pointer
Program 1
When the above C++ program is compiled and executed, it will produce the following result.