1.2.1 Genesis - Structure of a Program
Q14. Give a brief introduction about C++. Illustrate Structure of C++ program with an example.
Model
Answer :
duction to C++
Answers
Answered by
0
Answer:
im outside
Explanation:
let me get some time i m busy now
Answered by
0
Explanation:
Programs are a sequence of instructions or statements. These statements form the structure of a C++ program. C++ program structure isdivided into various sections, namely, headers, class definition, member functions definitions and main function.
STRUCT is a C++ data structure that can be used to store together elements of different data types. In C++, a structure is a user-defined data type. The structure creates a data type for grouping items of different data types under a single data type.
For example:
- Suppose you need to store information about someone, their name, citizenship, and age. You can create variables like name, citizenship, and age to store the data separately.
- However, you may need to store information about many persons in the future. It means variables for different individuals will be created. For example, name1, citizenship1, age1 etc. To avoid this, it's better to create a struct.
Similar questions