A structure is a collection of variables referenced under one name, providing a convenient means of keeping related information together. Which of the following is an acceptable routine to access a variable in a struct?
A)
variable.parameter
B)
variable
C)
variable/parameter
D)
variable>parameter
E)
variable = parameter
Answers
Answered by
0
Answer:
Structure is a group of variables of different data types represented by a single name. Lets take an example to understand the need of a structure in C programming.
Lets say we need to store the data of students like student name, age, address, id etc. One way of doing this would be creating a different variable for each attribute, however when you need to store the data of multiple students then in that case, you would need to create these several variables again for each student. This is such a big headache to store data in this way.
pls mark as brainliest
Similar questions
English,
5 months ago
Math,
5 months ago
Social Sciences,
5 months ago
Math,
11 months ago
Computer Science,
1 year ago
Science,
1 year ago
Physics,
1 year ago