Computer Science, asked by Satwikmishra, 10 months ago

WHAT IS THE USE OF STRUCTURE IN C++.....?​

Answers

Answered by Anonymous
2

C++ Program to assign data to members of a structure variable and display it. Here a structure P erson is declared which has three members name , age and salary . Inside main() function, a structure variable p1 is defined.

Answered by snowf1235
1

Answer:

Structures are used to overcome the shortcomings of arrays.

Basically arrays are used to store more than one data values of a single datatype.

Ex :int a[100], it stores integer datatype values

Structures are user defined datatypes which allows you to store data of different types.

Similar questions