Question
define a function named zero_structs, that takes 2 parameters. The first parameter should be a pointer to a struct of the previously defined type to
define a function named \"zero_structs\", that takes 2 parameters. The first parameter should be a pointer to a struct of the previously defined type to pass in the array of structs, and the second should be a 32-bit integer that you will use to pass the length of the array. The function should set all members of the structs in the passed-in array to zero.
5) Define a function named \"fill_structs\", which takes 3 parameters. The first parameter should be a pointer to a struct of the previously defined type to pass in the array of structs, the second should be a pointer to a 32-bit integer to pass in the array from part one, and the third should be a 32-bit integer that you will use to pass the length of the integer array. The function should set the members of the structs in the passed-in array to the elements of the 32-bit integer array that you pass in (i.e. the first struct's members should have the first 4 values of the integer array, the second struct should have the next 4 values, etc.)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started