I'm trying to pass a pointer to a struct in C but i cannot:
float calcular_media(struct aluno *aluno) {
Output warning:
C:\WINDOWS\system32\cmd.exe /c gcc main.c aluno.c
aluno.c:7:29: warning: 'struct aluno' declared inside parameter list
What am I doing wrong? Thank you.
In the file containing the line
float calcular_media(struct aluno *aluno) {
one of the following must be there before the line
struct aluno; orstruct aluno { char c; int i; double d; }; or#include "aluno.h"If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With