Buenas, al momento de compilar el programa de prueba, si bien no me salen errores, me sale la siguiente alerta
Obligatorio1.c: In function ‘main’:
Obligatorio1.c:6:19: warning: passing
argument 2 of ‘llenarVector’ from in
compatible pointer type [-Wincompatib
le-pointer-types]
6 | llenarVector(2.0,v);
| ^
| |
| float *
In file included from matriz.h:25,
from Obligatorio1.c:
2:
matriz.c:3:36: note: expected ‘float
(*)[3]’ but argument is of type ‘floa
t *’
3 | rVector(float r,Vector3 *v){
| ~~~~~~~~~^
Obligatorio1.c:6:19: warning: passing
argument 2 of ‘llenarVector’ from in
compatible pointer type [-Wincompatib
le-pointer-types]
6 | llenarVector(2.0,v);
| ^
| |
| float *
In file included from matriz.h:25,
from Obligatorio1.c:
2:
matriz.c:3:36: note: expected ‘float
(*)[3]’ but argument is of type ‘floa
t *’
3 | rVector(float r,Vector3 *v){
| ~~~~~~~~~^
Por que podria darse esto?, me fije y lo que le estoy pasando es del tipo Vector3, pero segun entiendo, no lo reconoce asi