Write a function called gimmeindex that returns the index


1. Write a function called gimmeIndex() that returns the index of the largest value stored in an array-of-doubles. Demonstrate the function in a program that passes the name and size of the array to your function (listing 10.10 has an example of passing the name and size of an array to a function). Make sure your array contains at least 10 elements.

2. Write a program that declares a 4x5 array of int and initializes it to some non-zero values of your choice (you can hard-code the initial values or initialize it programmatically). Have the program output the values, then triple each value (overwrite each value with its new tripled value), then output those values. Make sure you output the array so that it looks like a 4x5 array on the screen. USE NAMED CONSTANTS for the array size and loop limits.

Solution Preview :

Prepared by a verified Expert
C/C++ Programming: Write a function called gimmeindex that returns the index
Reference No:- TGS01702432

Now Priced at $70 (50% Discount)

Recommended (90%)

Rated (4.3/5)