0

How to pass an array of structures as an argument to a function in C? Also how to return an array of structures from a function.

(A function in C)

19th Sep 2018, 5:47 AM
Sri Harsha
Sri Harsha - avatar
2 Respostas
+ 1
as you would pass an array of any type afaik. typedef struct {...} a; then the method: void m(a* arr) {...} someone can correct me if this is wrong though
19th Sep 2018, 2:31 PM
hinanawi
hinanawi - avatar
0
Mind changing your tag to C instead if #c
19th Sep 2018, 6:46 AM
Eldar Bakerman