Question: C-program, please write code needed to complete this, thank you. Deliverable 1: Pointers and Functions and Structures An example from last week uses the following
C-program, please write code needed to complete this, thank you.
Deliverable 1: Pointers and Functions and Structures An example from last week uses the following structure: struct Block { double length; double width; double height; char material (50); Write a program that has two functions: main() and bigBlock(). As input parameters, the function bigBlock should take three pointers to Block structures. This function should replace the length of the third Block with the sum of the lengths of the other two Blocks. It should replace the width of the third Block with the sum of the widths of the other two Blocks. It should replace the height of the third Block with the sum of the heights of the other two Blocks. The function should also return the volume of the third Block. Your main function should just test out the bigBlock function and display the results. The header for the bigBlock function should be: double bigBlock (struct Block aptr, struct Block *bptr, struct Block *cptr)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
