Write a function named twomax


Write a function named twomax that takes a pointer to an array of integer numbers, array size, a pointer to integer which is the index of the first maximum, and another pointer to integer which is the index of the second maximum as parameters. The function should find and return the index (subscript or position) of the first maximum element and the index of the second maximum element in the array of integers. The function prototype is: void twomax(int *array,int size,int * p1,int *p2);

Write a main to test twomax function.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Write a function named twomax
Reference No:- TGS0536403

Expected delivery within 24 Hours