Question: Help competing this code CS 1050 Lab Assignment9 FALL 2018 FAILURE TO RETURN THIS DOCUMENT TO THETA WILL RESULT INA ZERO GRADE FOR THE LAB
CS 1050 Lab Assignment9 FALL 2018 FAILURE TO RETURN THIS DOCUMENT TO THETA WILL RESULT INA ZERO GRADE FOR THE LAB the following lab assignment using the desoription given in each section Submit this assignment by following the instructions given by your TA. All the lab assignmments must be submitted before the end of the lab using the lab code given by the TA. eg. n-lab9. S submit cclass cassignment> cilename S submit CS1050 LAB 9 n-lab9.c Purpose: 1. Use and extend the concepts learned from the previous labs 2. Use pointer notation. NOTE creating the pointer to store a list of numbers. That is, this should be the only time you use The only time you should use array notation in this prelab (and in the lab) is when you are pointer #define MAX 50 int array[MAX int "pointer array; Description: Implement following functions for the prelab assignment. void get_size(int ): This function takes in an integer pointer from main, but does not have a return type. The function will read in the size of the pointer, but you will not type "return size," or something similar. Since the variable being taken into the parameters of the function is a pointer, it is being passed by reference so anything that happens to the variable in "get size" also happens to it in main which is different from how we normally pass a variable (pass by value). int check size(int): This function takes an integer number and checks if the number is between 1-50 or
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
