Question
Escriba un programa en C++ con las siguientes caractersticas: Escribe un programa para encontrar el mximo de un conjunto de enteros dentro de un arreglo
Escriba un programa en C++ con las siguientes caractersticas:
Escribe un programa para encontrar el mximo de un conjunto de enteros dentro de un arreglo (array). El programa debe pedir al usuario que introduzca cada uno de los valores. Al final el programa imprime un puntero que apuntar al valor mximo. Nota: solamente se utiliza el puntero para desplegar el valor mas grande
Ejemplo: Ingresa una cantidad de nmeros:4 Ingresa los valores al arreglo: 2 5 3 8 El valor ms grande en el arreglo es: 8 cout<<"El valor ms grande en el arreglo es "<<*pointer
English:
Write a C++ program with the following characteristics:
Write a program to find the maximum of a set of integers within an array. The program should ask the user to enter each of the values. At the end the program prints a pointer to point to the maximum value. Note: only the pointer is used to display the largest value
Example: Enter a number of numbers:4 Enter the values in the array: 2 5 3 8 The largest value in the array is: 8 cout<<"The largest value in the array is "<<*pointer
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started