Question: Please solve both of the questions above using C programming language. Question 1 4 pts Given the following declaration: int * arr = (int)malloc(sizeof(int) *


Please solve both of the questions above using C programming language.
Question 1 4 pts Given the following declaration: int * arr = (int)malloc(sizeof(int) * 4); and function Prototype: void fun(int *vals); Show a call to the function fun, using arr as a parameter D Question 2 6 pts Given the function Prototype: int foo(int *vals, int size); Write the functions' Definition such that foo will return an exact copy of the array supplied via the vals parameter
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
