Computer Science, asked by sidharthkpv242pbmhdz, 10 months ago

Write a c++ structure definitions to store student details given below.
1.Admission
2.Name
3.Mark in 6 subjects.

Answers

Answered by Anonymous
1

Answer:

Although you can only initialize in the aggregrate, you can later assign values to any data fields using the dot (.) notation.

To access any data field, place the name of the struct variable, then a dot (.), and then the name of the data field. Person obj1; obj1.

Structure is a collection of variables of different data types under a single name.

It is similar to a class in that, both holds a collecion of data of different data types.

For example: You want to store some information about a person: his/her name, citizenship number and salary.

Similar questions