Question: Programming in C question!!!!!!! I did part 1&2 together, and part 3 seperate. apparently part 3 is the only code needed to be submitted. i
Programming in C question!!!!!!! I did part 1&2 together, and part 3 seperate. apparently part 3 is the only code needed to be submitted. i put together the code, but it doesnt work :/
-attached are the directions
//PART1&2 #include
scanf("%d", &array[c]); printf(\u201center a given position\u201d); scanf("%d", &position);
largest(array,size,position); void largest(int array[],int size,int position) { maximum = array[position]; for (c = position; c < size; c++) { if (array[c] > maximum) { maximum = array[c]; location = c+1; } } printf("Maximum element is present at location %d and it's value is %d. ", location, maximum); return 0; }}
//PART3
#include 
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
