C++ Syntax Question:
Download Questions PDF

How to access a variable of the structure?


To access a variable of the structure it goes:

For example:
struct example {
int x;
struct example an_example; //Treating it like a normal variable type
an_example.x = 33; //How to access its members

Download Basic C++ Syntax Interview Questions And Answers PDF

Previous QuestionNext Question
What is format for defining a structure?What is C strings syntax?