Here is my code and everything works except i can not get the highest array number to be output. it always says 10. Any advice or where I should start looking to fix the problem would be appreciated I am very new to coding so make it in easy terms if possible!
My instructions are:
(1) Create a 10-integer array called data
(2) Set a pointer ptr to point to array data
(3) Output the elements in array data using pointer ptr
(4) Find the largest element in the array data using pointer ptr
#include <iostream>
#include <cstdlib>
using namespace std;
int main(){
float data[10];
cout << "Please enter 10 double numbers: ";