Question: Introduction This lab will give you practice using pointers and dynamic memory allocat tion in C. You will write a program that inputs an array



Introduction This lab will give you practice using pointers and dynamic memory allocat tion in C. You will write a program that inputs an array of ints, prints out the array in the order that the values were entered, reverses the array and finally prints out the values of the array after the reversal. Getting started: 1. Name your file reverse C 2. Use the following code to get started: #include "stdio.h" #include "stdlib.h" needed for malloc void swap void reverse (int *in-arr, int in-num) int main() int how many; printf ("How many numbers are you going to input? return 0; 3. At the command line, compile reverse.c by typing gCC reverse. C You should receive no compiler errors or warnings
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
