Question: They must be 3 desperate files Run your code, submit the output and code too. Submit code in a separate, compliable file, do NOT include
Run your code, submit the output and code too. Submit code in a separate, compliable file, do NOT include it in your pdf or text file. Write a structure with 2 fields: a1 and 11, where the former is an int pointer and the latter is an int. The name of the structure is arr. Conceptually, we can consider each instance of arr as an int array of length /1 [1 point]. 1. 2. Write a function called sum that takes as input an arr1 argument, and returns the sunm of all elements in the input array. Test your code in a main function [1 point] Write a function called getOdd that takes as input an arr1 argument, and returns the elements in arr1 that are odd. The output should be of type arr. Test your code in a main function [1 point]. Do you need dynamic memory allocation in getOdd [1 point]? 3. Like always: Run your code, submit the output and code too. Submit code in a separate, compliable file, do NOT include the code in your pdf or tex file. Submit only 1 compressed (gz.tar or .zip NOT rar) file for this HW
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
