Initializing and Accessing Members of a Structure Variable in C++
Learn about the basic syntax for accessing the members of a structure.
We'll cover the following
Introduction
We have seen how to define a structure and declare a structure variable in a program. Let’s see how we can store data in the member variables of the structure.
Basic syntax
The basic syntax for storing values in the member of the structure variable is given below:
Create a free account to view this lesson.
Continue your learning journey with a 14-day free trial.
By signing up, you agree to Educative's Terms of Service and Privacy Policy