Question: Structure is another user defined data type available in C that allows combination of data items from different datatype and usually used to represent a

Structure is another user defined data type available in C that allows combination of data items from different datatype and usually used to represent a record. [11 marks] a) Define a structure data type named BMI Data that consists of five data members (or member variables), which are character array variable named Name which can store maximum 50 characters, integer variable named Age and three floating point datatype named Weight, Height and BMI. [6 marks] b) Write a C programming statement to declare two struct BMI_Data variable, named Personl and Person2. [2 marks] c) Assume Personl and Person2 are two struct of BMI_Data variables. From following program segment. Write a C programming statement that extend the program segment: [3 marks] 19 20 21 Person1. Weight=80; Person1. Height=1.733; Person2.Weight=65; Person2.Height=1.658; 22
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
