Question: Using C code in visual studio is program create a structure named distance with two integer members feet and inches which you will create two
is program create a structure named distance with two integer members feet and inches which you will create two distance objects with appropriate values (D1, D2) from user input. You will then implement sum (addition) of their elements to create a third distance structure which is the sum of the other two (D3). You will then print out the new structure. a user define function named addDistance) that will take two structure objects and print E C:IWINDOWSIsystem32cmd.exe Enter first distance in feet & inches: 5 4 Enter second distance in feet & inches :6 2 al distance- Feet: 11, Inches: 6 Press any key to continue
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
