#include <cassert>#include “moreArrayFuncs.h”// a: an array of ints. size is how many ints in array// Return the index of largest value.// If more than one element has largest value,// break tie by returning the smallest index that// corresponds to an element with the largest value.// You may assume size >= 1int indexOfMax(int *a, int size) {assert(size >= 1);return -42; // STUB !!! Remove and replace with correctcode
}
//complete this code
Expert Answer
An answer will be send to you shortly. . . . .