Cual es el falloooooooooooooooooo?
#include <stdio.h>
#define n 4
void main()
{
int vector[n];
int calcular_valor_maximo(int []);
printf("Dame 4 numeros para asignar al vectorn");
scanf("%d%d%d%d",&vector[0],&vector[1],&vector[2],&vector[3]);
printf("El valor maximo del vector %dn",cacular_valor_maximo(vector));
}
int calcular_valor_maximo(int vector[n])
{
int temp=0;
while (temp < n)
{
if (vector[temp] > temp)
{
temp=vector[temp];
}
}
return(temp);
}
#define n 4
void main()
{
int vector[n];
int calcular_valor_maximo(int []);
printf("Dame 4 numeros para asignar al vectorn");
scanf("%d%d%d%d",&vector[0],&vector[1],&vector[2],&vector[3]);
printf("El valor maximo del vector %dn",cacular_valor_maximo(vector));
}
int calcular_valor_maximo(int vector[n])
{
int temp=0;
while (temp < n)
{
if (vector[temp] > temp)
{
temp=vector[temp];
}
}
return(temp);
}
