Question: Username: Midterm Exam 1 Fall 2 0 1 8 CS 2 4 0 0 0 ( 2 0 points ) Answer the following questions. (
Username:
Midterm Exam
Fall
CS
points Answer the following questions.
a points Declare a structure, resistorstruct, which contains in this order an array of IDLEN
characters named id a float named maxpower, and an integer named resistance.
struct resistorstruct
char idIDLEN;
floot maxpower ;
int reskstance ;
:
b points Use typedef to declare a new type, resistort of the structure in a
typedef struct resistorstruct resistort;
c points Declare a structure, circuitstruct, that contains an array of CNAMELEN char
acters named name and an array of resistorts called resistors.
struct circuitstruct
char nameCMMCELEEN;
resistort resistors ;
Given the following: sizeof int
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
