Question: in c language. Define a function SetHeight, with int parameters feetVal and inchesVal, that returns a struct of type LengthFtIn. The function should assign LengthFtIn's
in c language. Define a function SetHeight, with int parameters feetVal and inchesVal, that returns a struct of type LengthFtIn. The function should assign LengthFtIn's data member numFeet with feetVal and numInches with inchesVal. #include
typedef struct LengthFtInstruct
int numFeet;
int numInches;
LengthFtIn;
Your code goes here
L
int mainvoid
LengthFtIn objectSize;
int feetVal;
int inchesVal;
scanfd &feetVal;
scanfd &inchesVal;
objectSize SetHeightfeetVal inchesVal;
printfSize: dft din.
objectSize.numFeet, objectSize.numInches;
return ;
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
