C:\Users\asus\Desktop\vectores nota mayor.c In function `main':
17 C:\Users\asus\Desktop\vectores nota mayor.c subscripted value is neither array nor pointer
21 C:\Users\asus\Desktop\vectores nota mayor.c subscripted value is neither array nor pointer
24 C:\Users\asus\Desktop\vectores nota mayor.c subscripted value is neither array nor pointer
Código C:
Ver original
#include <stdio.h> #include <stdlib.h> #define N_ALUMNOS 3 int main() { char nom[N_ALUMNOS][21]; double nota; int i; int nota_mayor; for(i=0; i<N_ALUMNOS; i++){ } nota_mayor=0; for(i=1; i<N_ALUMNOS; i++){ if(nota[i]>nota[nota_mayor]); nota_mayor=i; } }