Define a float array called t[] with 10 slots. Initialize all elements of t with value -7.
Send the address of the first element of the array to a function called ReadThemAll0. Also send 2 and 6 as integers.
The function will assign the array address to a pointer called p and read floats in all the slots between these two numbers inclusive and assign 7 to the read elements from slot 2 to 6.
Write a complete program.
In the main function, call ReadThemAll, then print out the entire array. Sample output:
t[0]=0 t[1]=0 t[2]=7 t[3]=7 t[4]=7 t[5]=7 t[6]=7 t[7]=0 t[8]=0 t[9]=0