Question: Note: Lab submission must include all codes. Comments are must!! Each task needs at least a block comment ( and multiple single line comment )
Note: Lab submission must include all codes.
Comments are must!!
Each task needs at least a block comment and multiple single line comment explaining what's going on
Task : Pointers and functions Must finish in lab
Subtasks:
Create two int pointers p and p in main.
Create a function called init This function will declare ain array of size and will assign random values if you want to make things easier, you can create a loop from to and assign the value of to each element in the array This function must return the array created in the function. Plus, the only argument of the function is the length of the array.
Create a void function called init This function does exactly the same than init but I will not return anything. For this function, consider which parameters you need.
Assign an array to p and p using init and init respectively.
Finally, print the values not the addresses stored in and
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
