C++ Syntax Question:
Download Job Interview Questions and Answers PDF
What is format for defining a structure?
Answer:
The format for defining a structure is:
struct Tag {
Members
};
Where Tag is the name of the entire type of structure and Members are the variables within the struct. To actually create a single structure the syntax is
struct Tag name_of_single_structure;
struct Tag {
Members
};
Where Tag is the name of the entire type of structure and Members are the variables within the struct. To actually create a single structure the syntax is
struct Tag name_of_single_structure;
Download Basic C++ Syntax Interview Questions And Answers
PDF
Previous Question | Next Question |
What is general format for a prototype? | How to access a variable of the structure? |